Commit 8b5abe50 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: Check for NULLity to avoid segfault in AdvPrefs. CLose #1957

I just don't understand why double-clicking in an empty space does trigger the
event, but it does...
parent efc16454
...@@ -225,6 +225,7 @@ void PrefsDialog::changeSimplePanel( int number ) ...@@ -225,6 +225,7 @@ void PrefsDialog::changeSimplePanel( int number )
/* Changing from one Advanced Panel to another */ /* Changing from one Advanced Panel to another */
void PrefsDialog::changeAdvPanel( QTreeWidgetItem *item ) void PrefsDialog::changeAdvPanel( QTreeWidgetItem *item )
{ {
if( item == NULL ) return;
PrefsItemData *data = item->data( 0, Qt::UserRole ).value<PrefsItemData*>(); PrefsItemData *data = item->data( 0, Qt::UserRole ).value<PrefsItemData*>();
if( advanced_panel ) if( advanced_panel )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment