Merge remote-tracking branch 'woju/master'

This commit is contained in:
Marek Marczykowski-Górecki 2014-09-09 22:01:54 +02:00
commit 1cadc1e943

View File

@ -762,9 +762,13 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
def __remove_service__(self):
item = self.services_list.currentItem()
if not item:
return
if str(item.text()) == 'meminfo-writer':
QMessageBox.information(None, "Service can not be removed", "Service meminfo-writer can not be removed from the list.")
else:
return
row = self.services_list.currentRow()
item = self.services_list.takeItem(row)
del self.new_srv_dict[str(item.text())]