Skip to content

Commit

Permalink
Bugfix: Filter menus
Browse files Browse the repository at this point in the history
  • Loading branch information
mnowiasz committed Jul 19, 2020
1 parent 400dede commit 1047515
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 0.7.1 (2020-07-19)
==========================
+ Bugfix: Filter menus are working again

Version 0.7.0 (2020-07-11)
=============
* "copy to clipboard" action for ingredients
Expand Down
2 changes: 1 addition & 1 deletion src/qisit/qt/main/qisitmain.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def qtmain():
QtCore.QCoreApplication.setOrganizationDomain("qisit.app")
QtCore.QCoreApplication.setOrganizationName("qisit")
QtCore.QCoreApplication.setApplicationName("qisit")
QtCore.QCoreApplication.setApplicationVersion("0.7.0")
QtCore.QCoreApplication.setApplicationVersion("0.7.1")

# CTRL-C
signal.signal(signal.SIGINT, signal.SIG_DFL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,16 @@ def __init__(self, session_: orm.Session):
_translate = self._translate
# self.menuFilter.clear()

filter_menu = QtWidgets.QMenu()
for menu_entry, filter_table in ((_translate("RecipeWindow", "Author"), data.Author),
(_translate("RecipeWindow", "Category"), data.Category),
(_translate("RecipeWindow", "Cuisine"), data.Cuisine)):
self._filter_menus[filter_table] = QtWidgets.QMenu(title=menu_entry)
self._filter_menus[filter_table].setEnabled(True)
self.actionFilter.setMenu(self._filter_menus[filter_table])

filter_menu.addMenu(self._filter_menus[filter_table])

self.actionFilter.setMenu(filter_menu)

self._action_filters = {
data.Category: self.actionfilterCategories,
Expand Down
2 changes: 1 addition & 1 deletion src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='qisit',
version='0.7.0',
version='0.7.1',
packages = find_packages(include=['qisit','qisit.*']),
package_data={
"qisit": ["LICENSE.md"],
Expand Down

0 comments on commit 1047515

Please sign in to comment.