Vcs: Do not crash when stopping running commands

Drop the connect once the editor gets killed. Remove the QSignalMapper
and replace it with a lambda to facilitate that change.

Task-number: QTCREATORBUG-14613
Change-Id: I1a5990bf37af88092933143ebb78dd5ceb9c1222
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Tobias Hunger
2015-06-22 17:38:34 +02:00
parent 582661a5bd
commit e0c5ff03ec
3 changed files with 24 additions and 43 deletions

View File

@@ -68,7 +68,7 @@ class VCSBASE_EXPORT VcsBaseClientImpl : public QObject
Q_OBJECT
public:
explicit VcsBaseClientImpl(VcsBaseClientImpl *client, VcsBaseClientSettings *settings);
explicit VcsBaseClientImpl(VcsBaseClientSettings *settings);
~VcsBaseClientImpl();
VcsBaseClientSettings &settings() const;
@@ -130,7 +130,6 @@ protected:
private:
void saveSettings();
void commandFinishedGotoLine(QWidget*);
VcsBaseClientImplPrivate *d;
};