>> or...dont pass filename parameter and let the open dialog start always in 
>> home. if user really wants to go to hidden, let him use the popup menu for 
>> displaying hidden files.
>>
>>   
> This is inconvenient, at best, since ~/.lyx/bind/ is where the bind files 
> will normally be put. So I'm not sure what we should do here.

i know its ugly but i run out of ideas :( users wont love this, but maybe better
than crash.

pavel
diff --git a/src/frontends/qt4/LyXFileDialog.cpp 
b/src/frontends/qt4/LyXFileDialog.cpp
index bba5774..11d0874 100644
--- a/src/frontends/qt4/LyXFileDialog.cpp
+++ b/src/frontends/qt4/LyXFileDialog.cpp
@@ -51,6 +51,11 @@ LyXFileDialog::LyXFileDialog(docstring const & t,
        : QFileDialog(qApp->focusWidget(),
                      toqstr(t), toqstr(p), toqstr(filters.as_string()))
 {
+       // Qt File dialog randomly crashes when hidden directory is in the path.
+       // Waiting for upstream fix or paralel of qt 3 setShowHiddenFiles
+       if (contains(to_ascii(p),"/."))
+               setDirectory("");
+
        setWindowTitle(toqstr(t));
 
        QList<QHBoxLayout *> layout = findChildren<QHBoxLayout *>();

Reply via email to