Merge branch 'master' into virt-mode-select-fixes

This commit is contained in:
Marta Marczykowska-Górecka 2018-01-19 00:36:38 +01:00
commit f1964f0c5b
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B
3 changed files with 5 additions and 3 deletions

View File

@ -21,6 +21,7 @@
from PyQt4 import QtGui # pylint: disable=import-error
from PyQt4 import QtCore # pylint: disable=import-error
import datetime
# pylint: disable=too-few-public-methods
power_order = QtCore.Qt.DescendingOrder
@ -505,7 +506,8 @@ class VmLastBackupItem(QtGui.QTableWidgetItem):
self.vm = vm
if getattr(self.vm, 'backup_timestamp', None):
self.setText(self.vm.backup_timestamp)
self.setText(
str(datetime.datetime.fromtimestamp(self.vm.backup_timestamp)))
else:
self.setText("")

View File

@ -115,7 +115,7 @@ def prepare_label_choice(widget, holder, propname, default, *args, **kwargs):
app = holder
return prepare_choice(widget, holder, propname,
sorted(app.labels, key=lambda l: l.index),
sorted(app.labels.values(), key=lambda l: l.index),
default, *args,
icon_getter=(lambda label: QIcon.fromTheme(label.icon)),
**kwargs)

View File

@ -211,7 +211,7 @@
</column>
<column>
<property name="text">
<string>Size</string>
<string>Disk size</string>
</property>
</column>
<column>