Pārlūkot izejas kodu

Do not perform forceInstallPatches if there're other operations with patches

Ivan Arkhipov 5 gadi atpakaļ
vecāks
revīzija
e77b63c32f
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      src/Legacy/models/patchlist.cpp

+ 1 - 0
src/Legacy/models/patchlist.cpp

@@ -245,6 +245,7 @@ void PatchList::forceInstallPatches()
 {
     if (active_operations_num_ > 0) {
         qWarning() << "Trying to start force patch installation, while there are already some operations running!";
+    	return;
     }
 
     auto is_database_enabled = [](QString db_name) -> bool {