Commit a4f40085 authored by Méven Car's avatar Méven Car Committed by Christoph Cullmann
Browse files

Fix typo

parent 3c0b2e30
......@@ -1176,7 +1176,7 @@ void KateMainWindow::queueModifiedOnDisc(KTextEditor::Document *doc)
s_modOnHdDialog = new KateMwModOnHdDialog(list, this);
m_modignore = true;
KWindowSystem::setOnAllDesktops(s_modOnHdDialog->winId(), true);
connect(s_modOnHdDialog, &KateMwModOnHdDialog::requesOpenDiffDocumment, this, [this](const QUrl &url) {
connect(s_modOnHdDialog, &KateMwModOnHdDialog::requestOpenDiffDocument, this, [this](const QUrl &url) {
viewManager()->openUrl(url, QString(), true, true);
});
s_modOnHdDialog->exec();
......
......@@ -341,11 +341,11 @@ void KateMwModOnHdDialog::slotPDone()
}
m_diffFile->setAutoRemove(false);
QUrl url = QUrl::fromLocalFile(QDir::tempPath() + "/" + m_diffFile->fileName());
QUrl url = QUrl::fromLocalFile(QDir::tempPath() + QLatin1Char('/') + m_diffFile->fileName());
delete m_diffFile;
m_diffFile = nullptr;
Q_EMIT requesOpenDiffDocumment(url);
Q_EMIT requestOpenDiffDocument(url);
}
void KateMwModOnHdDialog::addDocument(KTextEditor::Document *doc)
......
......@@ -33,7 +33,7 @@ public:
void addDocument(KTextEditor::Document *doc);
Q_SIGNALS:
void requesOpenDiffDocumment(const QUrl &documentUrl);
void requestOpenDiffDocument(const QUrl &documentUrl);
private Q_SLOTS:
void slotIgnore();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment