[Kstars-devel] KDE/kdeedu/kstars/kstars/tools
Alexey Khudyakov
alexey.skladnoy at gmail.com
Sun Jan 31 15:07:14 CET 2010
SVN commit 1082918 by khudyakov:
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.
By-hands merge from unfrozen branch
CCMAIL:kstars-devel at kde.org
M +3 -0 observinglist.cpp
--- trunk/KDE/kdeedu/kstars/kstars/tools/observinglist.cpp #1082917:1082918
@@ -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