Bug 118244 - Ark deletes files even if Canceled!!
Summary: Ark deletes files even if Canceled!!
Status: RESOLVED FIXED
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR grave
Target Milestone: ---
Assignee: Harald Hvaal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-13 15:03 UTC by Michael Reiher
Modified: 2005-12-22 14:20 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Reiher 2005-12-13 15:03:45 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

There is not much more to say.. Open an archive (zip in my case), select a file, press "Delete", select "Cancel" from the really-delete-? dialog - and ark happily deletes the file!

I'm using KDE 3.5 branch from Dec 12th 2005.
Comment 1 Fredrik Edemar 2005-12-22 14:20:09 UTC
SVN commit 490602 by fedemar:

Fix bug 118244: "Ark deletes files even if Canceled" + show the files the dialog.
BUG: 118244


 M  +5 -3      arkwidget.cpp  


--- branches/KDE/3.5/kdeutils/ark/arkwidget.cpp #490601:490602
@@ -1242,11 +1242,13 @@
     QStringList list = m_fileListView->selectedFilenames();
 
     // ask for confirmation
-    if ( !KMessageBox::warningContinueCancel( this,
+    if ( KMessageBox::warningContinueCancelList( this,
                                               i18n( "Do you really want to delete the selected items?" ),
+                                              list,
                                               QString::null,
-                                              KStdGuiItem::del() )
-         == KMessageBox::Continue)
+                                              KStdGuiItem::del(),
+                                              "confirmDelete" )
+         != KMessageBox::Continue)
     {
         return;
     }