]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/LyXFileDialog.cpp
On Mac, moving down a paragraph should place the cursor at the end of the current...
[lyx.git] / src / frontends / qt4 / LyXFileDialog.cpp
index 5fabf915c204c357f83930394c06d6cf7205f40d..2bc7ba1a030d8eb6e2e0d2d26932c51a351362e4 100644 (file)
@@ -49,15 +49,7 @@ LyXFileDialog::LyXFileDialog(QString const & title,
                                 // FIXME replace that with guiApp->currentView()
        : QFileDialog(qApp->focusWidget(), title, path)
 {
-       setFilters(filters);
-#if QT_VERSION < 0x040304
-       // FIXME: workaround for a bug in qt which makes LyX crash
-       // 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
+       setNameFilters(filters);
        setWindowTitle(title);
 
        QList<QHBoxLayout *> layout = findChildren<QHBoxLayout *>();