summaryrefslogtreecommitdiffstats
path: root/src/file.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2014-01-11 11:08:00 +0000
committerKris <Kris.De.Gussem@hotmail.com>2014-01-11 11:08:00 +0000
commit5105f4e289edeb4d0528dff54dbd8e33f98b6cad (patch)
treeeab28095e2f1c9ef51ca0d35290a3fb76c0b4ca9 /src/file.cpp
parentsuppress compiler warnings (diff)
downloadinkscape-5105f4e289edeb4d0528dff54dbd8e33f98b6cad.tar.gz
inkscape-5105f4e289edeb4d0528dff54dbd8e33f98b6cad.zip
gtkmmification (seems there is more margin in desktop-widget.cpp)
(bzr r12915)
Diffstat (limited to 'src/file.cpp')
-rw-r--r--src/file.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/file.cpp b/src/file.cpp
index babc4df99..35039fed3 100644
--- a/src/file.cpp
+++ b/src/file.cpp
@@ -360,11 +360,8 @@ void sp_file_revert_dialog()
bool do_revert = true;
if (doc->isModifiedSinceSave()) {
- gchar *text = g_strdup_printf(_("Changes will be lost! Are you sure you want to reload document %s?"), uri);
-
- bool response = desktop->warnDialog (text);
- g_free(text);
-
+ Glib::ustring tmpString = Glib::ustring::compose(_("Changes will be lost! Are you sure you want to reload document %1?"), uri);
+ bool response = desktop->warnDialog (tmpString);
if (!response) {
do_revert = false;
}