[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdev-python/frameworks] docfilekcm: port KUrl -> QUrl: KCMs
From: Sven Brauch <svenbrauch () googlemail ! com>
Date: 2014-12-25 23:57:27
Message-ID: E1Y4IHX-00057a-J5 () scm ! kde ! org
[Download RAW message or body]
Git commit 36e9156551c36af3c247545123ad39560f56f640 by Sven Brauch.
Committed on 25/12/2014 at 23:47.
Pushed by brauch into branch 'frameworks'.
port KUrl -> QUrl: KCMs
this is kind of untested
M +1 -2 docfilekcm/docfilewizard.cpp
http://commits.kde.org/kdev-python/36e9156551c36af3c247545123ad39560f56f640
diff --git a/docfilekcm/docfilewizard.cpp b/docfilekcm/docfilewizard.cpp
index 3e27095..915784e 100644
--- a/docfilekcm/docfilewizard.cpp
+++ b/docfilekcm/docfilewizard.cpp
@@ -39,7 +39,6 @@
#include <KDialog>
#include <KMessageBox>
#include <KProcess>
-#include <KUrl>
DocfileWizard::DocfileWizard(const QString& workingDirectory, QWidget* parent)
: QDialog(parent)
@@ -192,7 +191,7 @@ void DocfileWizard::saveAndClose()
outputFile.fileName())) == KMessageBox::Yes;
}
if ( mayWrite ) {
- QString basePath = KUrl(outputFile.fileName()).directory();
+ auto basePath = QUrl::fromLocalFile(outputFile.fileName()).url(QUrl::RemoveFilename);
if ( ! QDir(basePath).exists() ) {
QDir(basePath).mkpath(basePath);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic