void MainWindow::on_reloadAction_triggered() {
-
+ int confId = Conference::activeConference();
+ if (confId== -1) return;
+ Conference active = Conference::getById(confId);
+ if (active.url().isEmpty()) return;
+ importFromNetwork(active.url());
+ setEnabled(false);
}
{
importData(aReply->readAll(), aReply->url().toEncoded());
}
+ setEnabled(true);
}
void MainWindow::importData(const QByteArray &aData, const QString& url)
</hint>
</hints>
</connection>
- <connection>
- <sender>reloadAction</sender>
- <signal>triggered()</signal>
- <receiver>MainWindow</receiver>
- <slot>close()</slot>
- <hints>
- <hint type="sourcelabel">
- <x>-1</x>
- <y>-1</y>
- </hint>
- <hint type="destinationlabel">
- <x>451</x>
- <y>248</y>
- </hint>
- </hints>
- </connection>
</connections>
</ui>