File tree 3 files changed +23
-6
lines changed
3 files changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -1840,9 +1840,9 @@ void QgisApp::setupConnections()
1840
1840
1841
1841
// Monitor change of project path
1842
1842
connect ( QgsProject::instance (), SIGNAL ( readProject ( const QDomDocument & ) ),
1843
- this , SLOT ( projectChanged ( const QDomDocument & ) ) );
1843
+ this , SLOT ( readProject ( const QDomDocument & ) ) );
1844
1844
connect ( QgsProject::instance (), SIGNAL ( writeProject ( QDomDocument & ) ),
1845
- this , SLOT ( projectChanged ( const QDomDocument & ) ) );
1845
+ this , SLOT ( writeProject ( QDomDocument & ) ) );
1846
1846
}
1847
1847
1848
1848
void QgisApp::createCanvas ()
@@ -6067,3 +6067,13 @@ void QgisApp::projectChanged( const QDomDocument &doc )
6067
6067
6068
6068
runPythonString ( expr );
6069
6069
}
6070
+
6071
+ void QgisApp::writeProject ( QDomDocument &doc )
6072
+ {
6073
+ projectChanged ( doc );
6074
+ }
6075
+
6076
+ void QgisApp::readProject ( const QDomDocument &doc )
6077
+ {
6078
+ projectChanged ( doc );
6079
+ }
Original file line number Diff line number Diff line change @@ -386,6 +386,12 @@ class QgisApp : public QMainWindow
386
386
/* *Deletes the selected attributes for the currently selected vector layer*/
387
387
void deleteSelected ( QgsMapLayer *layer = 0 );
388
388
389
+ // ! project was written
390
+ void writeProject ( QDomDocument & );
391
+
392
+ // ! project was read
393
+ void readProject ( const QDomDocument & );
394
+
389
395
protected:
390
396
391
397
// ! Handle state changes (WindowTitleChange)
@@ -647,9 +653,6 @@ class QgisApp : public QMainWindow
647
653
648
654
void showStyleManagerV2 ();
649
655
650
- // ! project changed
651
- void projectChanged ( const QDomDocument & );
652
-
653
656
signals:
654
657
/* * emitted when a key is pressed and we want non widget sublasses to be able
655
658
to pick up on this (e.g. maplayer) */
@@ -1049,6 +1052,9 @@ class QgisApp : public QMainWindow
1049
1052
1050
1053
// ! Persistent GPS toolbox
1051
1054
QgsGPSInformationWidget * mpGpsWidget;
1055
+
1056
+ // ! project changed
1057
+ void projectChanged ( const QDomDocument & );
1052
1058
};
1053
1059
1054
1060
#endif
Original file line number Diff line number Diff line change @@ -293,7 +293,8 @@ void QgsIdentifyResults::show()
293
293
// (saves the current window size/position)
294
294
void QgsIdentifyResults::close ()
295
295
{
296
- clearRubberbands ();
296
+ clear ();
297
+
297
298
delete mActionPopup ;
298
299
mActionPopup = 0 ;
299
300
You can’t perform that action at this time.
0 commit comments