Mercurial > dedupe
diff DataController.cpp @ 7:d6fdca3bf24e
Make sure everything works for MemoryDBLink.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Wed, 22 Aug 2012 01:07:06 +0200 |
| parents | 5e4985407feb |
| children | d7b384b4a834 |
line wrap: on
line diff
--- a/DataController.cpp Wed Aug 22 00:42:25 2012 +0200 +++ b/DataController.cpp Wed Aug 22 01:07:06 2012 +0200 @@ -448,8 +448,12 @@ dbpath.replace(QRegExp("^~/"), QString("%1%2").arg(QDesktopServices::storageLocation(QDesktopServices::HomeLocation)).arg(QDir::separator())); } - + +#if 1 dblink = new SqliteDBLink(dbpath); +#else + dblink = new MemoryDBLink(); +#endif setDir((searchPath_in.size() > 0) ? searchPath_in : QDir("."));
