Commit 5bb540e5 authored by Samikshan Bairagya's avatar Samikshan Bairagya

Do not display the QML window when the wizard is closed.

parent 0f66bd98
......@@ -146,12 +146,12 @@ set(libkstarstools_SRCS
tools/scriptfunction.cpp
tools/skycalendar.cpp
tools/wutdialog.cpp
tools/whatsinteresting/skyobjlistmodel.cpp
tools/whatsinteresting/wiview.cpp
tools/whatsinteresting/modelmanager.cpp
tools/whatsinteresting/skyobjitem.cpp
tools/whatsinteresting/wiusersettings.cpp
tools/whatsinteresting/obsconditions.cpp
tools/whatsinteresting/skyobjlistmodel.cpp
tools/whatsinteresting/wiview.cpp
tools/whatsinteresting/modelmanager.cpp
tools/whatsinteresting/skyobjitem.cpp
tools/whatsinteresting/wiusersettings.cpp
tools/whatsinteresting/obsconditions.cpp
tools/flagmanager.cpp
tools/moonphasetool.cpp
tools/starhopper.cpp
......@@ -215,7 +215,7 @@ kde4_add_ui_files(libkstarstools_SRCS
tools/skycalendar.ui
tools/wutdialog.ui
tools/flagmanager.ui
tools/whatsinteresting/wiusersettings.ui
tools/whatsinteresting/wiusersettings.ui
)
......
......@@ -31,12 +31,14 @@ WIUserSettings::WIUserSettings(QWidget *parent, Qt::WindowFlags flags): QWizard(
void WIUserSettings::makeConnections()
{
connect(this, SIGNAL(finished(int)), this, SLOT(slotFinished(int)));
connect(telescopeCheck, SIGNAL( toggled(bool)), this, SLOT(slotTelescopeCheck(bool)));
connect(binocularsCheck, SIGNAL( toggled(bool)), this, SLOT(slotBinocularsCheck(bool)));
connect(telescopeCheck, SIGNAL(toggled(bool)), this, SLOT(slotTelescopeCheck(bool)));
connect(binocularsCheck, SIGNAL(toggled(bool)), this, SLOT(slotBinocularsCheck(bool)));
}
void WIUserSettings::slotFinished(int status)
{
if (status == 0) { kDebug()<<"Cancelled!"; return; }
m_Equip = noEquipCheck->isEnabled()
? (ObsConditions::None)
: (telescopeCheck->isChecked()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment