Merge pull request #166 from wongcc966422/fileDialogSegfaultFix

Fixes segfault when clearSelection() is called with a new instance of FileDialog
This commit is contained in:
Tobias Doerffel
2014-01-26 06:49:41 -08:00

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