Fixed a segfault in theme scheduler.
[jspeed] / src / themescheduler.cpp
index c8f939a..086b45a 100644 (file)
@@ -81,7 +81,7 @@ void ThemeScheduler::removeItem(QTime const& time)
         {
             delete items_.at(i);
             items_.removeAt(i);
         {
             delete items_.at(i);
             items_.removeAt(i);
-            break;
+            return;
         }
     }
 }
         }
     }
 }