mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
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:
parent
27f298812d
commit
df144f47b9
@ -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>
|
2003-10-01 Angus Leeming <leeming@lyx.org>
|
||||||
|
|
||||||
* QExternal.C (helpText): changes due to the introduction of
|
* QExternal.C (helpText): changes due to the introduction of
|
||||||
|
@ -65,7 +65,7 @@ FileDialog::Result const FileDialog::save(string const & path,
|
|||||||
int res = dlg.exec();
|
int res = dlg.exec();
|
||||||
lyxerr[Debug::GUI] << "result " << res << endl;
|
lyxerr[Debug::GUI] << "result " << res << endl;
|
||||||
if (res == QDialog::Accepted)
|
if (res == QDialog::Accepted)
|
||||||
result.second = string(dlg.selectedFile().data());
|
result.second = fromqstr(dlg.selectedFile());
|
||||||
dlg.hide();
|
dlg.hide();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@ -93,7 +93,7 @@ FileDialog::Result const FileDialog::open(string const & path,
|
|||||||
int res = dlg.exec();
|
int res = dlg.exec();
|
||||||
lyxerr[Debug::GUI] << "result " << res << endl;
|
lyxerr[Debug::GUI] << "result " << res << endl;
|
||||||
if (res == QDialog::Accepted)
|
if (res == QDialog::Accepted)
|
||||||
result.second = string(dlg.selectedFile().data());
|
result.second = fromqstr(dlg.selectedFile());
|
||||||
dlg.hide();
|
dlg.hide();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@ -119,7 +119,7 @@ FileDialog::Result const FileDialog::opendir(string const & path,
|
|||||||
int res = dlg.exec();
|
int res = dlg.exec();
|
||||||
lyxerr[Debug::GUI] << "result " << res << endl;
|
lyxerr[Debug::GUI] << "result " << res << endl;
|
||||||
if (res == QDialog::Accepted)
|
if (res == QDialog::Accepted)
|
||||||
result.second = string(dlg.selectedFile().data());
|
result.second = fromqstr(dlg.selectedFile());
|
||||||
dlg.hide();
|
dlg.hide();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user