aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/sqlitestudiocli/clicommandexecutor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SQLiteStudio3/sqlitestudiocli/clicommandexecutor.cpp')
-rw-r--r--SQLiteStudio3/sqlitestudiocli/clicommandexecutor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/SQLiteStudio3/sqlitestudiocli/clicommandexecutor.cpp b/SQLiteStudio3/sqlitestudiocli/clicommandexecutor.cpp
index 6a3072e..66707cc 100644
--- a/SQLiteStudio3/sqlitestudiocli/clicommandexecutor.cpp
+++ b/SQLiteStudio3/sqlitestudiocli/clicommandexecutor.cpp
@@ -8,7 +8,9 @@ CliCommandExecutor::CliCommandExecutor(QObject *parent) :
void CliCommandExecutor::execCommand(CliCommand* cmd)
{
- connect(cmd, SIGNAL(execComplete()), this, SLOT(asyncExecutionComplete()));
+ if (cmd->isAsyncExecution())
+ connect(cmd, SIGNAL(execComplete()), this, SLOT(asyncExecutionComplete()));
+
cmd->execute();
if (!cmd->isAsyncExecution())
{