summaryrefslogtreecommitdiffstats
path: root/consistencycheck.h
Commit message (Collapse)AuthorAgeFilesLines
* Clang fixes, nullptr and WindowFlags...Arno2018-11-231-2/+2
|
* Fix consistency checkArno2017-08-121-2/+0
| | | | | | | | | | | Actually, removing stray pictures never worked, because the call to that function was commented out. Also, remove the clear functions stray files and stray ids and lock the mutex in place. They were only called once, so we can do it inside the function. And don't forget to clear the picture Ids. Finally, fix the logic for activating the cleanup button.
* Behave on qApp->quit()Arno2013-09-141-0/+1
| | | | | | | | | | | | Sometimes there was a warning that a thread was being destroyed while still running. This was SmDirWatcher::run(). read() blocks until new data is ready, so run() never exited. Fix it by poll()ing the inotify_descriptor. Return immediately if no data is ready. Also fix a small memory leak. Delete ConsistencyChecker when the dialog is destructed.
* Fixed ConsistencyCheckArno2012-05-051-6/+23
| | | | | | | | The consistencychecker was broken since introducing the pictures tab. Never thought about it. It didn't know anything about the pics table. Fixed that. Also added some nice QGroupBoxes to the layout. The "delete stray pictures" thingy isn't tested at all, but it's quite straight forward.
* Center Dialogs on screenArno2011-08-171-2/+3
| | | | | | Since I'm now using a tiling window manager dialogs have to center themselves on the screen. Otherwise they end up at QPoint(0,0). Not very nice. Subclassed QDialog to SmDialog and converted all dialogs.
* Finish ConsistencyCheckerArno2010-11-061-5/+21
| | | | | | | | This commit reverts the previous one. You don't need a QTimer to start a QThread member function in a separate thread. Calling start() creates a new thread. Implemented filesystem check and polished the dialog.
* Let ConsistencyChecker run in QThreadArno2010-11-051-3/+7
| | | | | | | Until now ConsistencyChecker ran in the GUI-Thread. According to the docs the event loop of the QThread needs to be started to run something in the thread. So use a QTimer::singleShot() to start the check function.
* Finished database consistency checkArno2010-11-011-2/+5
| | | | | | Made the database consistency check work and added a filter to only show error messages in the output. The cause of the inconsistency still has to be investigated, though.
* First try on ConsistencyCheckerArno2010-10-311-0/+73
Well, it works, so let's shit it :) Unfortunately the database is inconsistent, so add a checker for that. Still needs some work, though. Eg. display errors seperately and make it possible to delete stray files. Also the Filesystem check must be implemented.