summaryrefslogtreecommitdiff
path: root/wizard
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-09-27 22:45:08 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2011-09-27 22:45:08 +0200
commit8c555aa3d5583667a47e3aa1d822b215f0a8a828 (patch)
tree134fd71216a3f8fcd1aa9c83c13906767a6b7382 /wizard
parent5223c928746464763071740655f53f7ed6c969fe (diff)
downloadacritoxinstaller-8c555aa3d5583667a47e3aa1d822b215f0a8a828.zip
acritoxinstaller-8c555aa3d5583667a47e3aa1d822b215f0a8a828.tar.gz
added missing signal-slot-connections, check current wizardpage
Diffstat (limited to 'wizard')
-rw-r--r--wizard/hdmap.cpp5
-rw-r--r--wizard/rootpartition.cpp6
2 files changed, 11 insertions, 0 deletions
diff --git a/wizard/hdmap.cpp b/wizard/hdmap.cpp
index 491e5b6..10c3324 100644
--- a/wizard/hdmap.cpp
+++ b/wizard/hdmap.cpp
@@ -2,6 +2,7 @@
#include "hdmap.h"
#include "../listdelegate.h"
#include "../listitem.h"
+#include "../mainwizard.h"
wpHdMap::wpHdMap(QWidget *parent) : QWizardPage(parent)
{
@@ -44,11 +45,15 @@ void wpHdMap::receivedDataLine(QString data, QString line)
void wpHdMap::receivedCommand(QString command, QString args)
{
+ if(this->wizard()->currentId() != MainWizard::Page_HdMap) return;
+
if(command == "error") checkPassed = false;
}
void wpHdMap::backendFinishedCommand(QString command)
{
+ if(this->wizard()->currentId() != MainWizard::Page_HdMap) return;
+
if(command == "fill_hdmap")
{
diff --git a/wizard/rootpartition.cpp b/wizard/rootpartition.cpp
index b020370..2b2b023 100644
--- a/wizard/rootpartition.cpp
+++ b/wizard/rootpartition.cpp
@@ -9,6 +9,8 @@ wpRootPartition::wpRootPartition(QWidget *parent) : QWizardPage(parent)
setupUi(this);
backend = Backend::instance();
connect(backend, SIGNAL(receivedDataLine(QString,QString)), this, SLOT(receivedDataLine(QString,QString)));
+ connect(backend, SIGNAL(receivedCommand(QString,QString)), this, SLOT(receivedCommand(QString,QString)));
+ connect(backend, SIGNAL(finishedCommand(QString)), this, SLOT(backendFinishedCommand(QString)));
connect(rootPartitionDev, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)), this, SLOT(updateComplete()));
connect(chkAdvanced, SIGNAL(stateChanged(int)), this, SLOT(updateComplete()));
@@ -56,6 +58,8 @@ bool wpRootPartition::isComplete() const
void wpRootPartition::backendFinishedCommand(QString command)
{
+ if(this->wizard()->currentId() != MainWizard::Page_RootPartition) return;
+
if(command == "check_partitions_for_install" && checkPassed)
{
this->wizard()->next();
@@ -64,6 +68,8 @@ void wpRootPartition::backendFinishedCommand(QString command)
void wpRootPartition::receivedCommand(QString command, QString args)
{
+ if(this->wizard()->currentId() != MainWizard::Page_RootPartition) return;
+
if(command == "error") checkPassed = false;
}