Enable the file dialog to open files with non-latin filenames.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7844 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-10-01 12:02:17 +00:00
parent 27f298812d
commit df144f47b9
2 changed files with 8 additions and 3 deletions

View 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

View 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;
}