[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kparts
From: Clarence Dang <dang () kde ! org>
Date: 2003-04-11 12:01:12
[Download RAW message or body]
CVS commit by dang:
GUI: "Untitled" not "" in queryClose()
M +4 -1 part.cpp 1.123
--- kdelibs/kparts/part.cpp #1.122:1.123
@@ -473,7 +473,10 @@ bool ReadWritePart::queryClose()
return true;
+ QString docName = url().fileName();
+ if (docName.isEmpty()) docName = i18n( "Untitled" );
+
int res = KMessageBox::warningYesNoCancel( widget(),
i18n( "The document \"%1\" has been modified.\n"
- "Do you want to save it?" ).arg( url().fileName() ),
+ "Do you want to save it?" ).arg( docName ),
i18n( "Save Document?" ), KStdGuiItem::save(), KStdGuiItem::discard() );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic