Bug 129284

Summary: strange error message when cancel save dialog in board editor
Product: [Applications] kmahjongg Reporter: Frederik Schwarzer <schwarzer>
Component: generalAssignee: Albert Astals Cid <aacid>
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Frederik Schwarzer 2006-06-17 06:52:02 UTC
Version:           0.7.8 (using KDE KDE 3.5.3)
OS:                Linux

When I cancel the save dialog of the board editor, I get the error message:
"Only saving to local files currently supported."

Maybe this is not what you want to tell the person cancelling this dialog.
Comment 1 Albert Astals Cid 2006-06-17 13:51:28 UTC
SVN commit 552305 by aacid:

Don't tell the user only saving to local medium is supported if he clicks cancel
BUGS: 129284

 M  +1 -0      Editor.cpp  

--- branches/KDE/3.5/kdegames/kmahjongg/Editor.cpp #552304:552305
@@ -313,6 +313,7 @@
 				"*|All Files"),
 				i18n("Save Board Layout" ));
+   if( url.isEmpty() ) return false;
    if( !url.isLocalFile() )
       KMessageBox::sorry( this, i18n( "Only saving to local files currently supported." ) );