Fixed Gtk plugin crash
git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@117 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "FileDialogs.h"
|
||||
#include <QDir>
|
||||
|
||||
IFileDialog* KpxFileDialogs::iFileDialog=NULL;
|
||||
QtStandardFileDialogs DefaultQtDlgs;
|
||||
@@ -31,7 +32,7 @@ QString KpxFileDialogs::openExistingFile(QWidget* Parent, const QString& Name, c
|
||||
{
|
||||
if(iFileDialog==NULL)iFileDialog=dynamic_cast<IFileDialog*>(&DefaultQtDlgs);
|
||||
//Load History here!
|
||||
return iFileDialog->openExistingFileDialog(Parent,Title,QString(),Filters);
|
||||
return iFileDialog->openExistingFileDialog(Parent,Title,QDir::homePath(),Filters);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user