forked from qt-creator/qt-creator
Improve safety of VcsCommand
Amends 6e85ff9f4b
Using "invokeMethod(m_outputWindow, ..." has the disadvantage that it
crashes if m_outputWindow was deleted. This is nicely handled when
connecting to signals, so switch back to signals.
Change-Id: I6a681ac48a86536fa8e69e42d3c61ffa9d30c3d5
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -51,13 +51,6 @@ public:
|
||||
const Utils::CommandLine &command,
|
||||
const QString &workDirectory = {}) override;
|
||||
|
||||
protected:
|
||||
void append(const QString &text) override;
|
||||
void appendSilently(const QString &text) override;
|
||||
void appendError(const QString &text) override;
|
||||
void appendCommand(const QString &workingDirectory, const Utils::CommandLine &command) override;
|
||||
void appendMessage(const QString &text) override;
|
||||
|
||||
private:
|
||||
void emitRepositoryChanged(const QString &workingDirectory);
|
||||
|
||||
@@ -65,7 +58,6 @@ private:
|
||||
|
||||
QString m_sshPrompt;
|
||||
bool m_preventRepositoryChanged;
|
||||
VcsOutputWindow *m_outputWindow = nullptr;
|
||||
};
|
||||
|
||||
} // namespace VcsBase
|
||||
|
||||
Reference in New Issue
Block a user