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();
	}
}
BOOL LoginDialog::onOptions()
{
  OptionsDialog dialog;
  dialog.setConnectionConfig(&m_connectionConfig);
  dialog.setParent(getControl());
  if (dialog.showModal() == 1) {
    StringStorage server;
    m_server.getText(&server);
    if (server.isEmpty()) {
      ConnectionConfigSM ccsm(RegistryPaths::VIEWER_PATH,
                              server.getString());
      m_connectionConfig.saveToStorage(&ccsm);
    }
    return FALSE;
  }
  return TRUE;
}