Skip to content

Commit

Permalink
Fix non-connected connection between aboutToQuit() signal and
Browse files Browse the repository at this point in the history
saveWindowState() slot


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4954 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Mar 3, 2006
1 parent b85d5aa commit 4fdcc96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/composer/qgscomposer.cpp
Expand Up @@ -69,8 +69,7 @@ QgsComposer::QgsComposer( QgisApp *qgis): QMainWindow()
qDebug( "unable to connect to newProject" );
}

// Doesn't work, there is not such signal I think (copy from QgisApp)
if ( ! connect(mQgis, SIGNAL(aboutToQuit()), this, SLOT(saveWindowState()) ) ) {
if ( ! connect(qApp, SIGNAL(aboutToQuit()), this, SLOT(saveWindowState()) ) ) {
qDebug( "unable to connect to aboutToQuit" );
}
restoreWindowState();
Expand Down
6 changes: 3 additions & 3 deletions src/composer/qgscomposer.h
Expand Up @@ -88,9 +88,6 @@ class QgsComposer: public QMainWindow, private Ui::QgsComposerBase
//! Sets state from DOM document
bool readXML( QDomNode & node );

//! Save window state
void saveWindowState();

//! Restore the window and toolbar state
void restoreWindowState();

Expand Down Expand Up @@ -146,6 +143,9 @@ public slots:
//! New project
void newProject();

//! Save window state
void saveWindowState();

private:
//! Set teh pixmap / icons on the toolbar buttons
void setupTheme();
Expand Down

0 comments on commit 4fdcc96

Please sign in to comment.