Skip to content

Commit 6121eea

Browse files
author
jef
committed
fix position restore of identify results
git-svn-id: http://svn.osgeo.org/qgis/trunk@13507 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 30caf1a commit 6121eea

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/app/qgsidentifyresults.cpp

+1-8
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ QgsIdentifyResults::QgsIdentifyResults( QgsMapCanvas *canvas, QWidget *parent, Q
105105
{
106106
setupUi( this );
107107
QSettings mySettings;
108+
restoreGeometry( mySettings.value( "/Windows/Identify/geometry" ).toByteArray() );
108109
bool myDockFlag = mySettings.value( "/qgis/dockIdentifyResults", false ).toBool();
109110
if ( myDockFlag )
110111
{
@@ -419,14 +420,6 @@ void QgsIdentifyResults::contextMenuEvent( QContextMenuEvent* event )
419420
mActionPopup->popup( event->globalPos() );
420421
}
421422

422-
// Restore last window position/size and show the window
423-
void QgsIdentifyResults::restorePosition()
424-
{
425-
QSettings settings;
426-
restoreGeometry( settings.value( "/Windows/Identify/geometry" ).toByteArray() );
427-
show();
428-
}
429-
430423
// Save the current window location (store in ~/.qt/qgisrc)
431424
void QgsIdentifyResults::saveWindowLocation()
432425
{

src/app/qgsidentifyresults.h

-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ class QgsIdentifyResults: public QDialog, private Ui::QgsIdentifyResultsBase
124124
void setColumnText( int column, const QString & label );
125125
void expandColumnsToFit();
126126
void saveWindowLocation();
127-
void restorePosition();
128127

129128
void highlightFeature( QTreeWidgetItem *item );
130129

0 commit comments

Comments
 (0)