Bug 129284 - strange error message when cancel save dialog in board editor
Summary: strange error message when cancel save dialog in board editor
Status: RESOLVED FIXED
Alias: None
Product: kmahjongg
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-17 06:52 UTC by Frederik Schwarzer
Modified: 2006-06-17 13:51 UTC (History)
0 users

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 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"),
 				this,
 				i18n("Save Board Layout" ));
+   if( url.isEmpty() ) return false;
    if( !url.isLocalFile() )
    {
       KMessageBox::sorry( this, i18n( "Only saving to local files currently supported." ) );