Show UnsavedDocumentsDialog when closing window or quitting application
so user can save and or discard docs more efficiently.
This commit is contained in:
parent
b97adced4c
commit
784ad68758
16 changed files with 544 additions and 164 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#include "OpenDatabase.h"
|
||||
#include "Pgsql_Connection.h"
|
||||
#include "IDatabaseWindow.h"
|
||||
#include "querytool/SqlDocument.h"
|
||||
#include <QMainWindow>
|
||||
#include <memory>
|
||||
|
||||
|
|
@ -38,6 +39,7 @@ public:
|
|||
~DatabaseWindow();
|
||||
|
||||
void setConfig(const ConnectionConfig &config);
|
||||
void openSharedSqlDocument(std::shared_ptr<SqlDocument> document);
|
||||
|
||||
std::shared_ptr<OpenDatabase> getDatabase() { return m_database; }
|
||||
|
||||
|
|
@ -98,6 +100,7 @@ private slots:
|
|||
void on_actionInspect_server_triggered();
|
||||
void on_actionNew_Query_triggered();
|
||||
void on_actionOpen_Query_triggered();
|
||||
void on_actionOpen_in_other_window_triggered();
|
||||
void on_actionSave_Query_triggered();
|
||||
void on_actionPaste_lang_string_triggered();
|
||||
void on_actionRefreshCatalog_triggered();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue