[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.4/kdeedu/kstars/kstars/tools
From:       Jason Harris <kstars () 30doradus ! org>
Date:       2005-10-01 2:57:39
Message-ID: 1128135459.301077.2602.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 465868 by harris:

One more fix in ObservingList: must check to make sure that oCurrent is 
not NULL in slotClose().



 M  +1 -1      observinglist.cpp  


--- branches/KDE/3.4/kdeedu/kstars/kstars/tools/observinglist.cpp #465867:465868
@@ -362,7 +362,7 @@
 //FIXME: On close, we will need to close any open Details/AVT windows
 void ObservingList::slotClose() {
 	//Save the current User log text
-	if ( ! ui->NotesEdit->text().isEmpty() && ui->NotesEdit->text() 
+	if ( oCurrent && ! ui->NotesEdit->text().isEmpty() && ui->NotesEdit->text() 
 					!= i18n("Record here observation logs and/or data on %1.").arg( oCurrent->name()) ) {
 		oCurrent->saveUserLog( ui->NotesEdit->text() );
 	}
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic