[prev in list] [next in list] [prev in thread] [next in thread]
List: kstars-devel
Subject: [Kstars-devel] KDE/kdeedu/kstars/kstars/tools
From: Alexey Khudyakov <alexey.skladnoy () gmail ! com>
Date: 2010-01-31 14:07:14
Message-ID: 1264946834.745689.8354.nullmailer () svn ! kde ! org
[Download RAW message or body]
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@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();
_______________________________________________
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