[Kstars-devel] branches/kstars/unfrozen/kstars/kstars/tools
Akarsh Simha
akarshsimha at gmail.com
Wed Dec 23 22:15:12 CET 2009
SVN commit 1065627 by asimha:
Add a message box that warns the user about deleting all images. This
is good for people with slow internet connections. Introduces a new
string -- so this is not going into trunk now.
CCMAIL: kstars-devel at kde.org
M +3 -0 observinglist.cpp
--- branches/kstars/unfrozen/kstars/kstars/tools/observinglist.cpp #1065626:1065627
@@ -1265,6 +1265,8 @@
}
void ObservingList::slotDeleteImages() {
+ if( KMessageBox::warningYesNo( 0, i18n( "This will delete all saved images! Are you sure you want to do this?" ), i18n( "Delete All Images" ) ) == KMessageBox::No )
+ return;
ui->ImagePreview->setCursor( Qt::ArrowCursor );
ui->GoogleImage->setEnabled( false );
ui->SaveImage->setEnabled( false );
@@ -1277,6 +1279,7 @@
QDirIterator iterator( KStandardDirs::locateLocal( "appdata", "" ) );
while( iterator.hasNext() )
{
+ // TODO: Probably, there should be a different directory for cached images in the observing list.
if( iterator.fileName().contains( "Image" ) && ( ! iterator.fileName().contains( "dat" ) ) && ( ! iterator.fileName().contains( "obslist" ) ) ) {
QFile file( iterator.filePath() );
file.remove();
More information about the Kstars-devel
mailing list