X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FLyXFileDialog.cpp;h=5fabf915c204c357f83930394c06d6cf7205f40d;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=b9a9045cc23a5de5b8b8008c83950dfe09b4de80;hpb=1fc477efac5fd3804c6407a03791e713f643fc43;p=lyx.git diff --git a/src/frontends/qt4/LyXFileDialog.cpp b/src/frontends/qt4/LyXFileDialog.cpp index b9a9045cc2..5fabf915c2 100644 --- a/src/frontends/qt4/LyXFileDialog.cpp +++ b/src/frontends/qt4/LyXFileDialog.cpp @@ -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 layout = findChildren();