diff options
Diffstat (limited to 'src/search/SearchController.cpp')
| -rw-r--r-- | src/search/SearchController.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/search/SearchController.cpp b/src/search/SearchController.cpp index 68fe978..5e592ae 100644 --- a/src/search/SearchController.cpp +++ b/src/search/SearchController.cpp @@ -198,7 +198,7 @@ void SearchController::removeSelectedC() std::vector<int> saves; public: RemoveSavesTask(std::vector<int> saves_) { saves = saves_; } - virtual void doWork() + virtual bool doWork() { for(int i = 0; i < saves.size(); i++) { @@ -215,6 +215,7 @@ void SearchController::removeSelectedC() usleep(100*1000); notifyProgress((float(i+1)/float(saves.size())*100)); } + return true; } }; @@ -251,7 +252,7 @@ void SearchController::unpublishSelectedC() std::vector<int> saves; public: UnpublishSavesTask(std::vector<int> saves_) { saves = saves_; } - virtual void doWork() + virtual bool doWork() { for(int i = 0; i < saves.size(); i++) { @@ -268,6 +269,7 @@ void SearchController::unpublishSelectedC() usleep(100*1000); notifyProgress((float(i+1)/float(saves.size())*100)); } + return true; } }; @@ -284,7 +286,7 @@ void SearchController::FavouriteSelected() std::vector<int> saves; public: FavouriteSavesTask(std::vector<int> saves_) { saves = saves_; } - virtual void doWork() + virtual bool doWork() { for(int i = 0; i < saves.size(); i++) { @@ -301,6 +303,7 @@ void SearchController::FavouriteSelected() usleep(100*1000); notifyProgress((float(i+1)/float(saves.size())*100)); } + return true; } }; |
