@@ -272,14 +272,11 @@ QgsIdentifyResultsDialog::QgsIdentifyResultsDialog( QgsMapCanvas *canvas, QWidge
272272
273273 QSettings mySettings;
274274 restoreGeometry ( mySettings.value ( " /Windows/Identify/geometry" ).toByteArray () );
275- bool myDockFlag = mySettings.value ( " /qgis/dockIdentifyResults" , false ).toBool ();
276- if ( myDockFlag )
277- {
278- mDock = new QgsIdentifyResultsDock ( tr ( " Identify Results" ) , QgisApp::instance () );
279- mDock ->setAllowedAreas ( Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea );
280- mDock ->setWidget ( this );
281- QgisApp::instance ()->addDockWidget ( Qt::LeftDockWidgetArea, mDock );
282- }
275+ mDock = new QgsIdentifyResultsDock ( tr ( " Identify Results" ) , QgisApp::instance () );
276+ mDock ->setAllowedAreas ( Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea );
277+ mDock ->setWidget ( this );
278+ QgisApp::instance ()->addDockWidget ( Qt::LeftDockWidgetArea, mDock );
279+
283280 mExpandNewToolButton ->setChecked ( mySettings.value ( " /Map/identifyExpand" , false ).toBool () );
284281 mCopyToolButton ->setEnabled ( false );
285282 lstResults->setColumnCount ( 2 );
@@ -666,7 +663,6 @@ void QgsIdentifyResultsDialog::show()
666663 // don't show the form dialog instead of the results window
667664 lstResults->setCurrentItem ( featItem );
668665 featureForm ();
669- return ;
670666 }
671667 }
672668
@@ -696,8 +692,8 @@ void QgsIdentifyResultsDialog::close()
696692
697693 saveWindowLocation ();
698694 done ( 0 );
699- if ( mDock )
700- mDock ->close ();
695+
696+ mDock ->close ();
701697}
702698
703699// Save the current window size/position before closing
0 commit comments