manager/qubesmanager
Peter Gerber 031ad02ff6
Settings window: do not crash when there is no firewall rule
When all firewall rules are removed, qubes-vm-settings crashed
trying to check if the last rule accepts or drops all packages.
It is now verifies that there is a last rule.

Also, it is now properly verified that the last rule accept
or drops all packages.

Associated stack trace:

----
line: last_rule = reversed_rules.pop(0)
func: get_firewall_conf
line no.: 227
file: /usr/lib/python3.5/site-packages/qubesmanager/firewall.py
----
line: conf = self.get_firewall_conf(vm)
func: set_vm
line no.: 308
file: /usr/lib/python3.5/site-packages/qubesmanager/firewall.py
----
line: model.set_vm(vm)
func: __init__
line no.: 111
file: /usr/lib/python3.5/site-packages/qubesmanager/settings.py
----
line: settings_window = VMSettingsWindow(vm, qapp, args.tab)
func: main
line no.: 1133
file: /usr/lib/python3.5/site-packages/qubesmanager/settings.py
----
line: load_entry_point('qubesmanager==4.0.17', 'console_scripts', 'qubes-vm-settings')()
func: <module>
line no.: 9
file: /usr/bin/qubes-vm-settings
2018-05-11 01:24:22 +00:00
..
i18n spring cleaning part 2 2017-07-12 14:54:12 +02:00
__init__.py Initial public commit. 2010-05-11 16:54:35 +02:00
.gitignore gitignore 2012-07-05 00:47:05 +02:00
about.py Fixed 'About' window 2018-01-08 04:22:54 +01:00
appmenu_select.py Final corrections 2017-11-14 15:44:43 +01:00
backup_utils.py Fixed GUI Restore tool bug 2018-03-15 00:18:43 +01:00
backup.py Fixed bug 3594 2018-02-20 19:22:57 +01:00
block.py Renamed 'VM' to 'qube' everywhere in manager 2018-01-28 20:26:29 +01:00
bootfromdevice.py Boot from device window fix 2018-02-11 00:20:14 +01:00
clipboard.py Fixed GPL license 2017-11-06 21:06:30 +01:00
create_new_vm.py Bugfixed 2018-02-10 23:34:59 +01:00
device_list.py Added 'configure no strict reset for PCI devices' button 2018-01-13 00:25:48 +01:00
firewall.py Settings window: do not crash when there is no firewall rule 2018-05-11 01:24:22 +00:00
global_settings.py Added default_dispvm to Global Settings 2018-03-14 22:21:33 +01:00
informationnotes.py Fixed 'About' window 2018-01-08 04:22:54 +01:00
log_dialog.py Code review changes 2018-01-10 02:18:51 +01:00
mount_for_backup.sh Remove trailing semicolons 2014-02-23 00:44:08 +01:00
multiselectwidget.py Final corrections 2017-11-14 15:44:43 +01:00
qube_manager.py Fix bug in Qube Manager 2018-03-30 01:15:23 +02:00
qvm_about.sh Add extended information and Network diagram to Manager 2017-01-26 20:36:39 +00:00
releasenotes.py Fixed 'About' window 2018-01-08 04:22:54 +01:00
restore.py Suggested changes 2018-01-06 02:21:07 +01:00
settings.py Added 'Apply' button to VM Settings 2018-02-20 20:32:00 +01:00
table_widgets.py Fix for updates-available in qube-manager 2018-03-26 18:21:46 +02:00
thread_monitor.py Final corrections 2017-11-14 15:44:43 +01:00
utils.py Fixed minor error in previous fix 2018-03-02 00:43:43 +01:00