if (!m_name.isEmpty()) {
if (!m_ratingNAM) {
m_ratingNAM = new QNetworkAccessManager(this);
+ connect(m_ratingNAM, SIGNAL(finished(QNetworkReply *)),
+ this, SIGNAL(ratingSent()));
+ connect(this, SIGNAL(ratingSent()), this, SLOT(updateInfo()));
}
QSettings settings(this);
m_ratingNAM->get(QNetworkRequest(QUrl(
} else {
// Create remote by name and update it's info if online
m_remote = Remote(selectedRemote);
- m_remoteNameLabel->setText(selectedRemote);
connect(&m_remote, SIGNAL(infoUpdated()),
- this, SLOT(updateRemoteInfo()));
+ this, SLOT(updateRemoteInfo()));
+ m_remoteNameLabel->setText(selectedRemote);
m_netConfMan = new QTM_PREPEND_NAMESPACE(
QNetworkConfigurationManager)(this);
connect(m_netConfMan, SIGNAL(updateCompleted()),
void SettingsDlg::rateUpClicked()
{
- m_remote.sendRating(Rating::Up);
processRatingSent();
+ m_remote.sendRating(Rating::Up);
}
void SettingsDlg::rateDownClicked()
{
- m_remote.sendRating(Rating::Down);
processRatingSent();
+ m_remote.sendRating(Rating::Down);
}
void SettingsDlg::processRatingSent()
{
setBusy();
enableRateBtns(false);
- m_remote.updateInfo();
}
void SettingsDlg::enableRateBtns(bool enable)