DatabaseWindow no longer has to pass the config to QueryTab, QueryTab can now init itself from the supplied context.

This commit is contained in:
eelke 2018-12-30 15:44:05 +01:00
parent 2a7e505dbf
commit a54a063c13
3 changed files with 8 additions and 15 deletions

View file

@ -86,10 +86,9 @@ DatabaseWindow::~DatabaseWindow()
QueryTab* DatabaseWindow::newSqlPage()
{
QueryTab *qt = new QueryTab(m_context);
qt->setConfig(m_config, m_database->catalog());
addPage(qt, "Tab");
qt->newdoc();
qt->focusEditor();
addPage(qt, "Tab");
return qt;
}