mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
[fix][settings] crashing when an empty Qt style is defined
This commit is contained in:
@@ -6,7 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
|
|
||||||
## [0.9.3] 2020
|
## [0.9.3] 2020
|
||||||
### Fixes
|
### Fixes
|
||||||
- upgrade: crashing for scenarios when there are packages that cannot upgrade to be displayed on the summary window
|
- upgrade: crashing for scenarios when there are packages that cannot upgrade to be displayed on the summary window
|
||||||
|
- settings: crashing when an empty Qt style is defined [#104](https://github.com/vinifmor/bauh/issues/104)
|
||||||
|
|
||||||
## [0.9.2] 2020-05-04
|
## [0.9.2] 2020-05-04
|
||||||
### Features
|
### Features
|
||||||
|
|||||||
@@ -171,8 +171,11 @@ class GenericSettingsManager:
|
|||||||
default_style = [o for o in style_opts if o.value == cur_style]
|
default_style = [o for o in style_opts if o.value == cur_style]
|
||||||
|
|
||||||
if not default_style:
|
if not default_style:
|
||||||
default_style = InputOption(label=cur_style, value=cur_style)
|
if cur_style:
|
||||||
style_opts.append(default_style)
|
default_style = InputOption(label=cur_style, value=cur_style)
|
||||||
|
style_opts.append(default_style)
|
||||||
|
else:
|
||||||
|
default_style = style_opts[0]
|
||||||
else:
|
else:
|
||||||
default_style = default_style[0]
|
default_style = default_style[0]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user