MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / onOpenSettings

Method onOpenSettings

Components/RMSViewer.cpp:216–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void
217RMSViewer::onOpenSettings(void)
218{
219 if (this->openSettings() && this->haveAddrData()) {
220 if (this->getListeningState()) {
221 int ret = QMessageBox::question(
222 this,
223 "Restart TCP server",
224 "TCP server settings have just changed, but it must be restarted "
225 "in order for the changes to take effect. Restarting will not close "
226 "existing remote connections.\n\nDo you want to restart "
227 "it now?");
228 if (ret == QMessageBox::Yes) {
229 this->setListeningState(false);
230 this->setListeningState(true);
231 }
232 }
233 }
234}
235
236void
237RMSViewer::onTitleChanged(QString title)

Callers

nothing calls this directly

Calls 4

openSettingsMethod · 0.95
haveAddrDataMethod · 0.95
getListeningStateMethod · 0.95
setListeningStateMethod · 0.95

Tested by

no test coverage detected