Skip to content

Commit

Permalink
show shortcuts in context menus if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
jopohl committed Jun 21, 2019
1 parent 28acf16 commit fbf8c17
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/urh/main.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
#!/usr/bin/env python3

import locale
import re
import multiprocessing
import os
import re
import sys
import multiprocessing


from PyQt5.QtCore import QTimer, Qt
from PyQt5.QtGui import QPalette, QIcon, QColor
from PyQt5.QtWidgets import QApplication, QWidget, QStyleFactory


try:
locale.setlocale(locale.LC_ALL, '')
except locale.Error as e:
Expand Down Expand Up @@ -108,6 +106,11 @@ def main():
app = QApplication(["URH"] + sys.argv[1:])
app.setWindowIcon(QIcon(":/icons/icons/appicon.png"))

try:
app.styleHints().setShowShortcutsInContextMenus(True)
except AttributeError:
pass

util.set_icon_theme()

font_size = constants.SETTINGS.value("font_size", 0, int)
Expand Down

0 comments on commit fbf8c17

Please sign in to comment.