summaryrefslogtreecommitdiffstats
path: root/src/vsession.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vsession.cpp')
-rw-r--r--src/vsession.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vsession.cpp b/src/vsession.cpp
index fec9fad..92cc9c4 100644
--- a/src/vsession.cpp
+++ b/src/vsession.cpp
@@ -254,7 +254,7 @@ bool VSession::run() const {
qDebug() << "Sarting session " << this->getAttribute("short_description", "param") << " ...";
}
- if (g_noVtx && is64Bit()) {
+ if (g_noVtx && needsVtx()) {
QMessageBox::warning(nullptr, QObject::trUtf8("Warning"),
QObject::trUtf8("The selected session is based on a 64 bit operating system,"
" but this computer doesn't seem to support this (VT-x/AMD-V not"
@@ -364,15 +364,15 @@ QList<Session*> VSession::readXmlFile(const QString& filepath) {
return sessionList;
}
-bool VSession::is64Bit() const {
+bool VSession::needsVtx() const {
ImgType type = imgtype();
return (type == VMWARE && getAttribute("os").endsWith("-64"))
- || (type == VBOX && getAttribute("os").endsWith("_64"));
+ || (type == VBOX /* && getAttribute("os").endsWith("_64") */); // Vbox 6.x doesn't seem to support 32bit VMs without VTx any more...
// TODO: qemu-kvm, ...
}
QVariant VSession::foregroundRole() const {
- if (!g_noVtx || !is64Bit())
+ if (!g_noVtx || !needsVtx())
return Session::foregroundRole();
return QColor(180, 180, 180);
}