mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
* LyXFileDialog.cpp:
- limit workaround for Qt bug that was fixed in Qt 4.3.4 to previous Qt versions (related to bug 4513). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28337 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
02f69f2508
commit
1a00ebbd90
@ -50,12 +50,14 @@ LyXFileDialog::LyXFileDialog(QString const & title,
|
||||
: QFileDialog(qApp->focusWidget(), title, path)
|
||||
{
|
||||
setFilters(filters);
|
||||
QDir dir(path);
|
||||
#if QT_VERSION < 0x040304
|
||||
// FIXME: workaround for a bug in qt which makes LyX crash
|
||||
// with hidden paths (bug 4513). Recheck with recent Qt versions.
|
||||
// with hidden paths (bug 4513). Fixed as of Qt 4.3.4
|
||||
QDir dir(path);
|
||||
if (path.contains("/."))
|
||||
dir.setFilter(QDir::Hidden);
|
||||
setDirectory(dir);
|
||||
#endif
|
||||
setWindowTitle(title);
|
||||
|
||||
QList<QHBoxLayout *> layout = findChildren<QHBoxLayout *>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user