[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdevplatform/1.7] plugins/filetemplates: filetemplates: Automatically create directory for license 
From:       Kevin Funk <kfunk () kde ! org>
Date:       2015-09-08 20:40:51
Message-ID: E1ZZPhD-0003sv-1Z () scm ! kde ! org
[Download RAW message or body]

Git commit dbde0afea242340a4b65cb2a630dbb31b4a97c09 by Kevin Funk, on behalf of Alexander Potashev.
Committed on 08/09/2015 at 20:28.
Pushed by kfunk into branch '1.7'.

filetemplates: Automatically create directory for license templates

Saving license templates did not work because the directory did not
exist.

(cherry picked from commit 5099e085073af0a7cf41594cdc5dd7c736f58211)

M  +1    -0    plugins/filetemplates/licensepage.cpp

http://commits.kde.org/kdevplatform/dbde0afea242340a4b65cb2a630dbb31b4a97c09

diff --git a/plugins/filetemplates/licensepage.cpp b/plugins/filetemplates/licensepage.cpp
index 047d2ef..ced20af 100644
--- a/plugins/filetemplates/licensepage.cpp
+++ b/plugins/filetemplates/licensepage.cpp
@@ -164,6 +164,7 @@ bool LicensePagePrivate::saveLicense()
         return false;
     }
 
+    QDir().mkpath(localDataDir);
     newFile.open(QIODevice::WriteOnly);
     qint64 result = newFile.write(license->licenseTextEdit->toPlainText().toUtf8());
     newFile.close();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic