ft: Closing windows asks to save queries before closing the window.
fix: closetab did incorrectly close when cancel was choosen.
This commit is contained in:
parent
adb44fc157
commit
dea76e17c5
7 changed files with 59 additions and 10 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#ifndef QUERYTAB_H
|
||||
#define QUERYTAB_H
|
||||
|
||||
#include "ManagedPage.h"
|
||||
#include "ASyncDBConnection.h"
|
||||
#include "QueryResultModel.h"
|
||||
#include "QueryExplainModel.h"
|
||||
|
|
@ -32,7 +33,7 @@ class OpenDatabase;
|
|||
class QueryParamListController;
|
||||
class PgDatabaseCatalog;
|
||||
|
||||
class QueryTool : public QWidget {
|
||||
class QueryTool : public ManagedPage {
|
||||
Q_OBJECT
|
||||
public:
|
||||
QueryTool(IDatabaseWindow *context, QWidget *parent = nullptr);
|
||||
|
|
@ -43,7 +44,7 @@ public:
|
|||
|
||||
void explain(bool analyze);
|
||||
|
||||
bool canClose();
|
||||
bool CanClose(bool prompt_user);
|
||||
|
||||
void generateCode();
|
||||
void exportDataToFilename(const QString &filename);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue