diff options
author | Jarek Kobus <[email protected]> | 2018-02-15 10:29:14 +0100 |
---|---|---|
committer | Jarek Kobus <[email protected]> | 2018-02-16 06:48:27 +0000 |
commit | 64233a4fae6de690a3e4ec1ffd7a85496cdea644 (patch) | |
tree | 9181022abd959090e87be305da8e0fb70968500c /src/plugins/git/gitclient.h | |
parent | 9494a9e0c068ac2b31309ebe816377e0e8ee5557 (diff) |
Fix repeting Stage/Unstage actions in unified diff editor
Don't store diff file index, chunk index and diff editor
controller anymore. Pass needed indices by value,
retrieve them when needed as lambda copy.
Change-Id: I3a81f1ab6d131c0b1d9899ac4b061b6e25582f51
Reviewed-by: Tobias Hunger <[email protected]>
Diffstat (limited to 'src/plugins/git/gitclient.h')
-rw-r--r-- | src/plugins/git/gitclient.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/git/gitclient.h b/src/plugins/git/gitclient.h index d98d46d4903..206a3c7b7bb 100644 --- a/src/plugins/git/gitclient.h +++ b/src/plugins/git/gitclient.h @@ -329,12 +329,11 @@ public: private: void finishSubmoduleUpdate(); - void slotChunkActionsRequested(QMenu *menu, bool isValid); - void slotStageChunk(); - void slotUnstageChunk(); + void chunkActionsRequested(QMenu *menu, int fileIndex, int chunkIndex); void branchesForCommit(const QString &revision); - void stage(const QString &patch, bool revert); + void stage(DiffEditor::DiffEditorController *diffController, + const QString &patch, bool revert); enum CodecType { CodecSource, CodecLogOutput, CodecNone }; QTextCodec *codecFor(CodecType codecType, const QString &source = QString()) const; @@ -378,7 +377,6 @@ private: QMap<QString, StashInfo> m_stashInfo; QStringList m_updatedSubmodules; bool m_disableEditor; - QPointer<DiffEditor::DiffEditorController> m_contextController; QFutureSynchronizer<void> m_synchronizer; // for commit updates }; |