- Timestamp:
- 09/06/12 09:13:31 (10 years ago)
- Branches:
- master, qt5
- Children:
- a62988a
- Parents:
- 9b5a80ff
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sql/sqlengine.cpp
r9b5a80ff ra8f8b5d 49 49 // we may have to create the directory of the database 50 50 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()); 59 53 // We don't have to handle errors because in worst case, opening the database will fail 60 54 // and db.isOpen() returns false.
Note: See TracChangeset
for help on using the changeset viewer.