DatabaseWindow no longer has to pass the config to QueryTab, QueryTab can now init itself from the supplied context.
This commit is contained in:
parent
2a7e505dbf
commit
a54a063c13
3 changed files with 8 additions and 15 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue