mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
fixed close with x
git-svn-id: http://svn.osgeo.org/qgis/trunk@3051 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
81b20c5928
commit
f860b12188
@ -15,6 +15,7 @@
|
||||
***************************************************************************/
|
||||
#include <iostream>
|
||||
#include <qdir.h>
|
||||
#include <qevent.h>
|
||||
#include <qfile.h>
|
||||
#include <qfiledialog.h>
|
||||
#include <qsettings.h>
|
||||
@ -684,11 +685,22 @@ void QgsGrassEdit::closeEdit(void)
|
||||
|
||||
mProvider->closeEdit();
|
||||
|
||||
close();
|
||||
hide();
|
||||
|
||||
delete this;
|
||||
}
|
||||
|
||||
void QgsGrassEdit::closeEvent(QCloseEvent *e)
|
||||
{
|
||||
#ifdef QGISDEBUG
|
||||
std::cerr << "QgsGrassEdit::closeEvent()" << std::endl;
|
||||
#endif
|
||||
|
||||
e->accept();
|
||||
|
||||
closeEdit();
|
||||
}
|
||||
|
||||
void QgsGrassEdit::catModeChanged ( void )
|
||||
{
|
||||
int mode = mCatModeBox->currentItem();
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include <vector>
|
||||
|
||||
class QString;
|
||||
class QCloseEvent;
|
||||
|
||||
#include <qpointarray.h>
|
||||
#include <qcursor.h>
|
||||
@ -168,6 +169,9 @@ public slots:
|
||||
// The type of column was changed
|
||||
void columnTypeChanged ( int row, int col );
|
||||
|
||||
// ! Close event
|
||||
void closeEvent(QCloseEvent *e);
|
||||
|
||||
private:
|
||||
//! Editing is already running
|
||||
static bool mRunning;
|
||||
|
Loading…
x
Reference in New Issue
Block a user