summaryrefslogtreecommitdiffstats
path: root/consistencycheck.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make it run with Qt6Arno2022-04-151-6/+6
| | | | | | | | | This is a huge commit. Changes: * Obviously, make it compile * Make it run (only scarcely tested) * get rid of most of clang's warnings Let's see what surprises are in store...
* Fix consistencycheck.cppArno2018-11-231-4/+4
| | | | Convert one connect to type-safe connect and fix 2 uninitialzed warnings.
* Clean up consistencycheck.cppArno2017-12-261-24/+24
| | | | | | * headers * get rid of foreach * use type safe connect syntax
* Get rid of QSignalMapper in consistencycheck.cppArno2017-12-261-11/+4
| | | | It's obsolete. Same as before!
* Fix consistency checkArno2017-08-121-14/+8
| | | | | | | | | | | 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/+4
| | | | | | | | | | | | 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.
* Get rid of FrameCacheArno2013-09-141-3/+0
|
* Port to Qt5Arno2013-03-031-10/+10
| | | | | | | | * Change #include to qt5 * Fix missing QX11Info * use explicit constructor for QVariant(QColor) * use beginResetModel() and endResetModel() instead of reset(). The latter was removed. Hopefully it still works :)
* Fixed ConsistencyCheckArno2012-05-051-45/+170
| | | | | | | | 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-1/+1
| | | | | | 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-31/+161
| | | | | | | | 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-20/+32
| | | | | | | 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-4/+31
| | | | | | 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/+176
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.