Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No need to refresh model if the model sets the data to the index #185

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Murmele
Copy link
Owner

@Murmele Murmele commented Jun 2, 2022

If you have a cleaner solution, we can change it.

@Murmele Murmele added this to the v1.2.0 milestone Jun 3, 2022
@stefanknotzer
Copy link
Collaborator

I am afraid (and almost sure) that this is a workaround for a problem which should not exist in the first place.
To solve the problem a rework might be needed which I am not able to break into pull-request right now.

@@ -160,6 +160,7 @@ class DiffTreeModel : public QAbstractItemModel {
git::Repository mRepo;

bool mListView = false;
bool suppressRefresh{false};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a comment to indicate that this is just a workaround?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, I will do. We can let this mr at the moment aside, because it is not that important

@exactly-one-kas exactly-one-kas added the enhancement New feature or request label Jun 6, 2022
@Murmele Murmele modified the milestones: v1.2.0, v1.3.0 Oct 7, 2022
@Murmele Murmele modified the milestones: v1.3.0, Next release Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants