diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2014-01-12 19:13:03 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2014-01-12 19:13:03 +0000 |
| commit | b94459967625b9aac3b3dce1d3a908e5ddd95450 (patch) | |
| tree | 5b9bc8c9f6715e4113563e2f09886a2f4670bec5 /src/file.cpp | |
| parent | update to trunk (diff) | |
| parent | pass class variables by reference for performance (diff) | |
| download | inkscape-b94459967625b9aac3b3dce1d3a908e5ddd95450.tar.gz inkscape-b94459967625b9aac3b3dce1d3a908e5ddd95450.zip | |
update to trunk
(bzr r11950.1.234)
Diffstat (limited to 'src/file.cpp')
| -rw-r--r-- | src/file.cpp | 7 |
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; } |
