Skip to content

Commit

Permalink
Fix log_dialog
Browse files Browse the repository at this point in the history
Due to python/qt changes, row must be calculated
less haphazardly
  • Loading branch information
marmarta committed Feb 14, 2023
1 parent 994b04e commit 325a9e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qubesmanager/log_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init_log_text__(self):
button = QtWidgets.QPushButton(log_path)
button.clicked.connect(partial(self.set_current_log, log_path))
self.buttonsLayout.addWidget(button,
count / btns_in_row, count % btns_in_row)
count // btns_in_row, count % btns_in_row)
count += 1

self.buttonsLayout.itemAt(0).widget().click()
Expand Down

0 comments on commit 325a9e6

Please sign in to comment.