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

List:       kstars-devel
Subject:    [Kstars-devel] branches/kstars/unfrozen/kstars/kstars/tools
From:       Akarsh Simha <akarshsimha () gmail ! com>
Date:       2009-12-23 21:15:12
Message-ID: 1261602912.355063.19149.nullmailer () svn ! kde ! org
[Download RAW message or body]

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@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();
_______________________________________________
Kstars-devel mailing list
Kstars-devel@kde.org
https://mail.kde.org/mailman/listinfo/kstars-devel


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

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