]> git.lyx.org Git - lyx.git/commitdiff
Enable the file dialog to open files with non-latin filenames.
authorAngus Leeming <leeming@lyx.org>
Wed, 1 Oct 2003 12:02:17 +0000 (12:02 +0000)
committerAngus Leeming <leeming@lyx.org>
Wed, 1 Oct 2003 12:02:17 +0000 (12:02 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7844 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt2/ChangeLog
src/frontends/qt2/FileDialog.C

index 679b11c5fffecb683c41471ad948e7f406680ba7..acc6cacba55b96b47f2fce153770969026d9a145 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-01  Vitaly Lipatov <lav@vl3143.spb.edu>
+
+       * FileDialog.C: use fromqstr in a few places to enable the dialog to
+       read non-latin filenames.
+
 2003-10-01  Angus Leeming  <leeming@lyx.org>
 
        * QExternal.C (helpText): changes due to the introduction of
index 671ade681074200f465c16d142ef9fc6b44d2c57..fb4c463c958f7419c986b87403d534eb90d32073 100644 (file)
@@ -65,7 +65,7 @@ FileDialog::Result const FileDialog::save(string const & path,
        int res = dlg.exec();
        lyxerr[Debug::GUI] << "result " << res << endl;
        if (res == QDialog::Accepted)
-               result.second = string(dlg.selectedFile().data());
+               result.second = fromqstr(dlg.selectedFile());
        dlg.hide();
        return result;
 }
@@ -93,7 +93,7 @@ FileDialog::Result const FileDialog::open(string const & path,
        int res = dlg.exec();
        lyxerr[Debug::GUI] << "result " << res << endl;
        if (res == QDialog::Accepted)
-               result.second = string(dlg.selectedFile().data());
+               result.second = fromqstr(dlg.selectedFile());
        dlg.hide();
        return result;
 }
@@ -119,7 +119,7 @@ FileDialog::Result const FileDialog::opendir(string const & path,
        int res = dlg.exec();
        lyxerr[Debug::GUI] << "result " << res << endl;
        if (res == QDialog::Accepted)
-               result.second = string(dlg.selectedFile().data());
+               result.second = fromqstr(dlg.selectedFile());
        dlg.hide();
        return result;
 }