From kde-commits Sun May 31 22:26:18 2009 From: Prakash Mohan Date: Sun, 31 May 2009 22:26:18 +0000 To: kde-commits Subject: branches/kstars/summer/kstars/kstars/tools Message-Id: <1243808778.307159.15203.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=124386172727511 SVN commit 976110 by prakash: We need to clear the SessionView, AVTPlot, CurrentObject, TimeHash, SessionList before opening a new session list. CCMAIL: kstars-devel@kde.org M +7 -1 observinglist.cpp --- branches/kstars/summer/kstars/kstars/tools/observinglist.cpp #976109:976110 @@ -811,7 +811,13 @@ } saveCurrentList(); - //First line is the name of the list. The rest of the file should + ui->tabWidget->setCurrentIndex(1); + slotChangeTab(1); + SessionList().clear(); + TimeHash.clear(); + m_CurrentObject = 0; + m_Session->removeRows( 0, m_Session->rowCount() ); + //First line is the name of the list. The rest of the file should //be object names, one per line. QTextStream istream(&f); QString line;