Skip to content

Commit

Permalink
fix position restore of identify results
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13507 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed May 16, 2010
1 parent a9e1255 commit 2a55b8c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
9 changes: 1 addition & 8 deletions src/app/qgsidentifyresults.cpp
Expand Up @@ -105,6 +105,7 @@ QgsIdentifyResults::QgsIdentifyResults( QgsMapCanvas *canvas, QWidget *parent, Q
{
setupUi( this );
QSettings mySettings;
restoreGeometry( mySettings.value( "/Windows/Identify/geometry" ).toByteArray() );
bool myDockFlag = mySettings.value( "/qgis/dockIdentifyResults", false ).toBool();
if ( myDockFlag )
{
Expand Down Expand Up @@ -419,14 +420,6 @@ void QgsIdentifyResults::contextMenuEvent( QContextMenuEvent* event )
mActionPopup->popup( event->globalPos() );
}

// Restore last window position/size and show the window
void QgsIdentifyResults::restorePosition()
{
QSettings settings;
restoreGeometry( settings.value( "/Windows/Identify/geometry" ).toByteArray() );
show();
}

// Save the current window location (store in ~/.qt/qgisrc)
void QgsIdentifyResults::saveWindowLocation()
{
Expand Down
1 change: 0 additions & 1 deletion src/app/qgsidentifyresults.h
Expand Up @@ -124,7 +124,6 @@ class QgsIdentifyResults: public QDialog, private Ui::QgsIdentifyResultsBase
void setColumnText( int column, const QString & label );
void expandColumnsToFit();
void saveWindowLocation();
void restorePosition();

void highlightFeature( QTreeWidgetItem *item );

Expand Down

0 comments on commit 2a55b8c

Please sign in to comment.