Connected IrCtrl to MainWidget
[irwi] / src / settingsdlg.cpp
index 4b7d5b3..37295d6 100644 (file)
@@ -20,7 +20,7 @@ SettingsDlg::SettingsDlg(QWidget *parent)
     m_remoteNameLayout = new QHBoxLayout(this);
     
     m_advSettingsBtn = new QPushButton(tr("Advanced"), this);
-    m_selectRemoteBtn = new QPushButton(tr("Select m_remote"), this);
+    m_selectRemoteBtn = new QPushButton(tr("Select remote"), this);
     m_aboutBtn = new QPushButton(tr("About"), this);
     m_rateUpBtn = new QPushButton(
             QIcon(settings.value("rateUpIcon",
@@ -41,6 +41,7 @@ SettingsDlg::SettingsDlg(QWidget *parent)
 
     m_remoteNameLabel = new QLabel(this);
     m_ratingLabel = new QLabel(this);
+    m_ratingLabel->setText(tr("Rating"));
     m_remoteNameLayout->addWidget(m_remoteNameLabel);
     m_remoteNameLayout->addWidget(m_ratingLabel);
     m_remoteNameLayout->addWidget(m_rateUpBtn);
@@ -89,6 +90,7 @@ void SettingsDlg::showSelectRemoteDlg()
     SelectRemoteDlg dlg(this);
     connect(&dlg, SIGNAL(m_remoteChanged(Remote)),
             this, SLOT(setRemote(Remote)));
+    updateRemoteInfo();
     dlg.exec();
 }
 
@@ -116,7 +118,6 @@ void SettingsDlg::initRemote()
 void SettingsDlg::setRemote(Remote r)
 {
     m_remote = r;
-    updateRemoteInfo();
     enableRateBtns();
 }