Special character handling patch from Oduis backported from Defloat
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include <diagonalcurveeditorsubgroup.h>
|
||||
#include <flatcurveeditorsubgroup.h>
|
||||
#include <multilangmgr.h>
|
||||
#include <safegtk.h>
|
||||
|
||||
extern Glib::ustring argv0;
|
||||
|
||||
@@ -326,7 +327,7 @@ Glib::ustring CurveEditorSubGroup::outputFile () {
|
||||
if (getExtension (fname)!="rtc")
|
||||
fname = fname + ".rtc";
|
||||
|
||||
if (Glib::file_test (fname, Glib::FILE_TEST_EXISTS)) {
|
||||
if (safe_file_test (fname, Glib::FILE_TEST_EXISTS)) {
|
||||
Glib::ustring msg_ = Glib::ustring("<b>") + fname + ": " + M("MAIN_MSG_ALREADYEXISTS") + "\n" + M("MAIN_MSG_QOVERWRITE") + "</b>";
|
||||
Gtk::MessageDialog msgd (msg_, true, Gtk::MESSAGE_WARNING, Gtk::BUTTONS_YES_NO, true);
|
||||
int response = msgd.run ();
|
||||
|
Reference in New Issue
Block a user