Changeset a8f8b5d


Ignore:
Timestamp:
09/06/12 09:13:31 (10 years ago)
Author:
gregor herrmann <gregoa@…>
Branches:
master, qt5
Children:
a62988a
Parents:
9b5a80ff
Message:

One version for creating the directory is enough :)

(Now tested on Windows, too.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sql/sqlengine.cpp

    r9b5a80ff ra8f8b5d  
    4949    // we may have to create the directory of the database
    5050    QFileInfo dbFilenameInfo(dbFilename);
    51 
    52     // First possibility (works with Linux, not tested on Windows:
    53     // QDir cwd;
    54     // cwd.mkpath(dbFilenameInfo.absolutePath());
    55 
    56     // Second possibility (works on Windows)
    57     dbFilenameInfo.absoluteDir().mkpath(".");
    58 
     51    QDir cwd;
     52    cwd.mkpath(dbFilenameInfo.absolutePath());
    5953    // We don't have to handle errors because in worst case, opening the database will fail
    6054    // and db.isOpen() returns false.
Note: See TracChangeset for help on using the changeset viewer.