Merge pull request #166 from wongcc966422/fileDialogSegfaultFix
Fixes segfault when clearSelection() is called with a new instance of FileDialog
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user