SettingsDlg::SettingsDlg(QWidget *parent)
: QDialog(parent)
+ , m_busy(false)
, m_netConfMan(NULL)
{
QSettings settings(this);
QString selectedRemote = settings.value("remoteName", "").toString();
if (selectedRemote == "") {
- setBusy(false);
m_remoteNameLabel->setText(tr("No remote selected"));
enableRateBtns(false);
} else {
// Create remote by name and update it's info if online
- setBusy(true);
+ m_busy = true;
m_remote = Remote(selectedRemote);
connect(&m_remote, SIGNAL(infoUpdated()),
this, SLOT(updateRemoteInfo()));
void SettingsDlg::onNetworkStatusUpdate()
{
if (m_netConfMan->isOnline()) {
+ setBusy();
m_remote.updateInfo();
enableRateBtns();
} else {