Fixes segfault when clearSelection() is called with a new instance of FileDialog

This commit is contained in:
Wong Cho Ching
2014-01-26 19:40:52 +08:00
parent 4ba5edc32c
commit 91d73bba2b

View File

@@ -59,7 +59,7 @@ FileDialog::FileDialog( QWidget *parent, const QString &caption,
void FileDialog::clearSelection()
{
static QListView *view = findChild<QListView*>();
QListView *view = findChild<QListView*>()
Q_ASSERT( view );
view->clearSelection();
}