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(); }