ToastFreeware
/
toast
/
confclerk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61346c9
)
fix .mkpath()
author
gregor herrmann
<gregoa@debian.org>
Wed, 5 Sep 2012 13:16:13 +0000
(13:16 +0000)
committer
gregor herrmann
<gregoa@debian.org>
Wed, 5 Sep 2012 13:16:13 +0000
(13:16 +0000)
Creating the "." path works.
Is this idiomatic? At least it works (under Windows).
TODO left: handle errors.
src/sql/sqlengine.cpp
patch
|
blob
|
history
diff --git
a/src/sql/sqlengine.cpp
b/src/sql/sqlengine.cpp
index be9e164b424d16fe15c61d78aedae52f4208f10a..a0771d7d1bc36195c25aa45caeabba0026e35dae 100644
(file)
--- a/
src/sql/sqlengine.cpp
+++ b/
src/sql/sqlengine.cpp
@@
-47,7
+47,7
@@
SqlEngine::~SqlEngine() {
void SqlEngine::open() {
QFileInfo dbFilenameInfo(dbFilename);
- dbFilenameInfo.absoluteDir().mkpath("
"); // TODO ...
+ dbFilenameInfo.absoluteDir().mkpath("
."); // TODO: handle error
db = QSqlDatabase::addDatabase("QSQLITE");
db.setDatabaseName(dbFilename);
db.open();