[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kstars] kstars/tools: Remove useless check
From: Khudyakov Alexey <alexey.skladnoy () gmail ! com>
Date: 2011-07-23 20:07:53
Message-ID: 20110723200753.1D1A9A60C4 () git ! kde ! org
[Download RAW message or body]
Git commit c4022ae61aa7727bbac794a1929fc71bf278227b by Khudyakov Alexey.
Committed on 23/07/2011 at 21:20.
Pushed by khudyakov into branch 'master'.
Remove useless check
M +4 -3 kstars/tools/observinglist.cpp
http://commits.kde.org/kstars/c4022ae61aa7727bbac794a1929fc71bf278227b
diff --git a/kstars/tools/observinglist.cpp b/kstars/tools/observinglist.cpp
index 71b4c90..7390d9d 100644
--- a/kstars/tools/observinglist.cpp
+++ b/kstars/tools/observinglist.cpp
@@ -366,12 +366,13 @@ void ObservingList::slotRemoveObject( SkyObject *o, bool session, bool update )
obsList().removeAt(k);
ui->View->removeAllPlotObjects();
ui->TableView->resizeColumnsToContents();
- if( ! update ) slotSaveList();
+ if( ! update )
+ slotSaveList();
} else {
if( ! update )
TimeHash.remove( o->name() );
- sessionList().removeAt(k);//Remove from the session list
- if ( ! isModified ) isModified = true;//Removing an object should trigger the modified flag
+ sessionList().removeAt(k); //Remove from the session list
+ isModified = true; //Removing an object should trigger the modified flag
ui->View->removeAllPlotObjects();
ui->SessionView->resizeColumnsToContents();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic