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

Fix crash when showing diff of empty protocol #626

Merged
merged 1 commit into from
Mar 11, 2019

Conversation

randeraad
Copy link
Contributor

Pressing the checkboxes "Mark diffs in protocol", "Show only diffs in protocol" or "Show only labels in protocol" in the Analysis tab would crash the app if no rows are available.

Traceback (most recent call last):
File "/urh/src/urh/controller/CompareFrameController.py", line 1398, in on_ref_index_changed
self.protocol_model.refindex = (new_ref_index + hide_correction) % self.protocol_model.row_count
ZeroDivisionError: integer division or modulo by zero

Pressing the checkboxes "Mark diffs in protocol", "Show only diffs in protocol" or "Show only labels in protocol" in the Analysis tab would crash the app if no rows are available.
@CLAassistant
Copy link

CLAassistant commented Mar 6, 2019

CLA assistant check
All committers have signed the CLA.

@jopohl jopohl changed the title Fix crash in CompareFrameController Fix crash when showing diff of empty protocol Mar 11, 2019
@jopohl jopohl merged commit 1eebfe9 into jopohl:master Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants