DiffEditor: Fix scrolling to current file after reloading

This feature got broken during recent refactorings.

Change-Id: I9d2d24e7ed63d5512b64c53e4bb9303497871d5e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2022-09-29 11:35:17 +02:00
parent 1cf6b031cf
commit 67121e6cd3
3 changed files with 10 additions and 0 deletions

View File

@@ -43,6 +43,8 @@ public:
void addExtraActions(QMenu *menu, int fileIndex, int chunkIndex, const ChunkSelection &selection);
void updateCannotDecodeInfo();
void setBusyShowing(bool busy);
void setCurrentDiffFileIndex(int index) { m_currentDiffFileIndex = index; }
int currentDiffFileIndex() const { return m_currentDiffFileIndex; }
ChunkData chunkData(int fileIndex, int chunkIndex) const;
@@ -74,6 +76,7 @@ private:
DiffEditorDocument *m_document = nullptr;
bool m_isBusyShowing = false;
int m_currentDiffFileIndex = -1;
Utils::ProgressIndicator *m_progressIndicator = nullptr;
QTimer m_timer;
};