[Kstars-devel] branches/KDE/3.5/kdeedu/kstars/kstars
Jason Harris
kstars at 30doradus.org
Fri Sep 9 09:01:51 CEST 2005
SVN commit 458874 by harris:
Two fixes:
+ AltVsTime tool: when Clear Fields is pressed, clear the Epoch field
instead of filling it with a default value
+ Use locateLocal() instead of locate() when determining user log
filename (log file was not being written)
That's all from me until after 3.5beta1...
CCMAIL: kstars-devel at kde.org
M +4 -1 skyobject.cpp
M +1 -1 tools/altvstime.cpp
--- branches/KDE/3.5/kdeedu/kstars/kstars/skyobject.cpp #458873:458874
@@ -396,7 +396,7 @@
KSLabel = "[KSLABEL:" + star->gname( false ) + "]"; //"false": spell out greek letter
}
- file.setName( locate( "appdata", "userlog.dat" ) ); //determine filename in local user KDE directory tree.
+ file.setName( locateLocal( "appdata", "userlog.dat" ) ); //determine filename in local user KDE directory tree.
if ( file.open( IO_ReadOnly)) {
QTextStream instream(&file);
// read all data into memory
@@ -419,6 +419,9 @@
//append the new log entry to the end of the logs text
logs.append( KSLabel + "\n" + newLog + "\n[KSLogEnd]\n" );
+ //DEBUG
+ kdDebug() << "filename: " << file.name() << endl;
+
//Open file for writing
//FIXME: change error message to "cannot write to user log file"
if ( !file.open( IO_WriteOnly ) ) {
--- branches/KDE/3.5/kdeedu/kstars/kstars/tools/altvstime.cpp #458873:458874
@@ -329,7 +329,7 @@
avtUI->nameBox->clear();
avtUI->raBox->clear() ;
avtUI->decBox->clear();
- avtUI->epochName->setText( QString().setNum( getDate().epoch() ) );
+ avtUI->epochName->clear();
}
void AltVsTime::computeSunRiseSetTimes() {
More information about the Kstars-devel
mailing list