void ViewerWindow::dialogConnectionOptions() { OptionsDialog dialog; dialog.setConnected(); dialog.setConnectionConfig(m_conConf); // FIXME: Removed Control from this code and another Control control = getHWnd(); dialog.setParent(&control); if (dialog.showModal() == 1) { m_conConf->saveToStorage(&m_ccsm); applySettings(); } }