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

List:       kde-commits
Subject:    kdebase/drkonqi
From:       Jan Schäfer <j_schaef () informatik ! uni-kl ! de>
Date:       2004-05-17 18:31:41
Message-ID: 20040517183141.C933724EE () office ! kde ! org
[Download RAW message or body]

CVS commit by schafer: 

If saving the backtrace to an already existing file, the user is
being asked now before overiding the file.

CCMAIL:81521-done@bugs.kde.org


  M +11 -0     debugger.cpp   1.26


--- kdebase/drkonqi/debugger.cpp  #1.25:1.26
@@ -113,4 +113,15 @@ void KrashDebugger :: slotSave()
     {
       QFile f(filename);
+      
+      if (f.exists()) {
+        if (KMessageBox::Cancel == 
+            KMessageBox::warningContinueCancel( 0,
+              i18n( "A file named \"%1\" already exists. "
+                    "Are you sure you want to overwrite it?" ).arg( filename ),
+              i18n( "Overwrite File?" ),
+              i18n( "&Overwrite" ) ))
+            return;       
+      }           
+      
       if (f.open(IO_WriteOnly))
       {


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

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