Skip to content
Permalink
Browse files
Fix non-connected connection between aboutToQuit() signal and
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 4fdcc966fc3626722b33968a631a731dbb69e042
Showing with 4 additions and 5 deletions.
  1. +1 −2 src/composer/qgscomposer.cpp
  2. +3 −3 src/composer/qgscomposer.h
@@ -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();
@@ -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();

@@ -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();

0 comments on commit 4fdcc96

Please sign in to comment.