summaryrefslogtreecommitdiffstats
path: root/src/dialog.cpp
diff options
context:
space:
mode:
authorJohann Latocha2011-03-02 17:27:07 +0100
committerJohann Latocha2011-03-02 17:27:07 +0100
commit58dac2dedc606c97abd37688bdba92b0243eb494 (patch)
tree49e67259297a37884ed03d6f1ece3fe1873e54ff /src/dialog.cpp
parentnew rz style layout (diff)
downloadvmchooser-58dac2dedc606c97abd37688bdba92b0243eb494.tar.gz
vmchooser-58dac2dedc606c97abd37688bdba92b0243eb494.tar.xz
vmchooser-58dac2dedc606c97abd37688bdba92b0243eb494.zip
window manager intergration removed
Diffstat (limited to 'src/dialog.cpp')
-rw-r--r--src/dialog.cpp22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/dialog.cpp b/src/dialog.cpp
index f2765ac..6100d8c 100644
--- a/src/dialog.cpp
+++ b/src/dialog.cpp
@@ -6,21 +6,11 @@
#include "save_restore_session.h"
#include "sessiontreeitem.h"
-Dialog::Dialog(QString windowmgr, QWidget *parent)
+Dialog::Dialog(QWidget *parent)
: QDialog(parent), ui(new Ui::Dialog) {
model_ = new SessionTreeModel(parent);
ui->setupUi(this);
- windowmgr_ = new QProcess(this);
- // start window manager
- if (windowmgr != "") {
- windowmgr_->start(windowmgr);
- windowmgr_->waitForStarted(3000);
- if (windowmgr_->error() == QProcess::FailedToStart)
- QMessageBox::warning(this, tr("Warning"),
- tr("Window manager '") + windowmgr + tr("' couldn't be started!"));
- }
-
QDBusConnection dbus = QDBusConnection::sessionBus();
ifaceDBus_ = new OrgOpenslxPvsInterface("org.openslx.pvs", "/", dbus, this);
@@ -43,8 +33,6 @@ Dialog::~Dialog() {
delete ui;
delete model_;
delete ifaceDBus_;
- windowmgr_->terminate();
- windowmgr_->waitForFinished(3000);
}
void Dialog::changeEvent(QEvent *e) {
@@ -70,18 +58,12 @@ void Dialog::on_treeView_activated(QModelIndex index) {
return;
}
- setVisible(false);
- if (s->type() == Session::XSESSION) {
- windowmgr_->terminate();
- windowmgr_->waitForFinished(3000);
- windowmgr_->kill();
- }
-
if (s->run()) {
if (ifaceDBus_->isValid()) {
writePVSSettings();
}
writeSessionName(s->shortDescription());
+ setVisible(false);
} else {
QMessageBox::warning(