Changeset 1f12b6b


Ignore:
Timestamp:
09/05/12 15:16:13 (10 years ago)
Author:
gregor herrmann <gregoa@…>
Branches:
master, qt5
Children:
9b5a80ff
Parents:
61346c9
Message:

fix .mkpath()

Creating the "." path works.
Is this idiomatic? At least it works (under Windows).

TODO left: handle errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sql/sqlengine.cpp

    r61346c9 r1f12b6b  
    4848void SqlEngine::open() {
    4949    QFileInfo dbFilenameInfo(dbFilename);
    50     dbFilenameInfo.absoluteDir().mkpath(""); // TODO ...
     50    dbFilenameInfo.absoluteDir().mkpath("."); // TODO: handle error
    5151    db = QSqlDatabase::addDatabase("QSQLITE");
    5252    db.setDatabaseName(dbFilename);
Note: See TracChangeset for help on using the changeset viewer.