Timer now knows where it was loaded from
[kitchenalert] / src / currentalertstablemodel.cpp
index 7631630..62e8327 100644 (file)
@@ -1,7 +1,7 @@
 /**************************************************************************
         KitchenAlert
 
-        Copyright (C) 2010  Heli Hyvättinen
+        Copyright (C) 2010-2011  Heli Hyvättinen
 
         This file is part of KitchenAlert.
 
@@ -295,7 +295,7 @@ void CurrentAlertsTableModel::setUpdateViewOnChanges(bool update)
     if (update == true)
     {
         refreshTimeAndStatusColumns(); //Refresh to catch up with past changes
-        qDebug() << "Just refreshed time and status colums after returning to the app";
+//        qDebug() << "Just refreshed time and status colums after returning to the app";
     }
     }
 
@@ -325,3 +325,8 @@ void CurrentAlertsTableModel::removeTimer(QModelIndex index)
 
 }
 
+bool CurrentAlertsTableModel::saveTimer(QModelIndex index, QString filename)
+{
+    return currentTimers_.at(index.row())->save(filename);
+}
+