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:
tarek_saidi
2006-11-14 20:28:16 +00:00
parent f4efea7849
commit 39a898cd02
6 changed files with 57 additions and 9 deletions

View File

@@ -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);
}