Fix show filename in tab after opening file and make F5 execute shortcut

work.
This commit is contained in:
eelke 2019-12-03 19:08:13 +01:00
parent e53b85bd86
commit 47b3ea83e9
3 changed files with 11 additions and 2 deletions

View file

@ -507,7 +507,7 @@ void DatabaseWindow::on_actionNewSql_triggered()
{
auto *ct = new QueryTool(this, this);
ct->addAction(actionExecuteQuery);
addPage(ct, "query");
addPage(ct, "new");
ct->newdoc();
}
@ -519,7 +519,8 @@ void DatabaseWindow::on_actionOpenSql_triggered()
if ( ! file_name.isEmpty()) {
auto *ct = new QueryTool(this, this);
if (ct->load(file_name)) {
addPage(ct, "");
ct->addAction(actionExecuteQuery);
addPage(ct, ct->title());
}
else {
delete ct;