Make pylint happy
This commit is contained in:
parent
d155787e7c
commit
1afd46da6b
@ -168,6 +168,7 @@ class TemplateModel(PyQt5.QtCore.QAbstractItemModel):
|
|||||||
return index == PyQt5.QtCore.QModelIndex()
|
return index == PyQt5.QtCore.QModelIndex()
|
||||||
|
|
||||||
def data(self, index, role=PyQt5.QtCore.Qt.DisplayRole):
|
def data(self, index, role=PyQt5.QtCore.Qt.DisplayRole):
|
||||||
|
# pylint: disable=too-many-return-statements
|
||||||
if index.isValid():
|
if index.isValid():
|
||||||
data = self.children[index.row()][index.column()]
|
data = self.children[index.row()][index.column()]
|
||||||
if role == PyQt5.QtCore.Qt.DisplayRole:
|
if role == PyQt5.QtCore.Qt.DisplayRole:
|
||||||
|
@ -631,9 +631,10 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtWidgets.QDialog):
|
|||||||
QtWidgets.QMessageBox.warning(
|
QtWidgets.QMessageBox.warning(
|
||||||
self,
|
self,
|
||||||
self.tr("Warning!"),
|
self.tr("Warning!"),
|
||||||
self.tr("Connecting a TemplateVM directly to a network is highly"
|
self.tr(
|
||||||
" discouraged! <br> <small>You are breaking a basic par"
|
"Connecting a TemplateVM directly to a network is highly"
|
||||||
"t of Qubes security and there is probably no real need"
|
" discouraged! <br> <small>You are breaking a basic part "
|
||||||
|
"of Qubes security and there is probably no real need"
|
||||||
" to do so. Continue at your own risk.</small>"))
|
" to do so. Continue at your own risk.</small>"))
|
||||||
|
|
||||||
def check_warn_dispvmnetvm(self):
|
def check_warn_dispvmnetvm(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user