Split all connection related controller functionality off into seperate ConnectionController.
This commit is contained in:
parent
8c13bdc2ef
commit
35d1e75d35
8 changed files with 103 additions and 61 deletions
|
|
@ -562,13 +562,12 @@ void QueryTool::copyQueryAsRawCppString()
|
|||
void QueryTool::generateCode()
|
||||
{
|
||||
QString command = getCommand();
|
||||
|
||||
if (resultList.empty()) {
|
||||
QMessageBox::question(this, "pglab", tr("Please execute the query first"), QMessageBox::Ok);
|
||||
}
|
||||
if (resultList.size() == 1) {
|
||||
std::shared_ptr<const Pgsql::Result> dbres = resultList[0]->GetPgsqlResult();
|
||||
//context()->newCodeGenPage(command, dbres);
|
||||
m_context->newCodeGenPage(command, dbres);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue