From 3b080e5b0bcb56103a43a67ad89ec35f7b97e7a4 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Sat, 6 Jun 2009 11:38:48 +0300 Subject: [PATCH] GUI: Convert native path to internal presentation. If application path is edited by hand there can be native Windows path separators. Unify path separators to internal presentation before storing the path. --- gui/applicationdialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/applicationdialog.cpp b/gui/applicationdialog.cpp index ced506fdc..a0c8b81d1 100644 --- a/gui/applicationdialog.cpp +++ b/gui/applicationdialog.cpp @@ -116,7 +116,9 @@ void ApplicationDialog::Ok() } else { - accept(); + // Convert possible native (Windows) path to internal presentation format + mPath->setText(QDir::fromNativeSeparators(mPath->text())); + accept(); } }