source/MainGUI.cpp
/**
 * Displays the Options dialog.
 * If exitOnReject is true GProxy will be restarted or closed when the dialog returns.
 *
 * @param exitOnReject Determines if GProxy should restarted/closed after the dialog returns.
 */
Displays the Options dialog.
If exitOnReject is true GProxy will be restarted or closed when the dialog returns.

@param exitOnReject Determines if GProxy should restarted/closed after the dialog returns.
Displays the Options dialog . If exitOnReject is true GProxy will be restarted or closed when the dialog returns . @param exitOnReject Determines if GProxy should restarted / closed after the dialog returns .
void MainGUI::showConfigDialog (bool exitOnReject)
{
    ConfigGUI* configGUI = new ConfigGUI(this);
    int exitCode = configGUI->exec();
    if (exitOnReject)
    {
        if (exitCode == QDialog::Accepted)
        {
            showErrorMessage("Restarting GProxy...");
            onRestart();
        }
        else
        {
            showErrorMessage("GProxy cannot run without configuration.\nGood luck next time!");
            QApplication::quit();
        }
    }
    delete configGUI;
}
void MainGUI :: showConfigDialog ( bool exitOnReject ) { ConfigGUI * configGUI = new ConfigGUI ( this ) ; int exitCode = configGUI -> exec ( ) ; if ( exitOnReject ) { if ( exitCode == QDialog :: Accepted ) { showErrorMessage ( " " ) ; onRestart ( ) ; } else { showErrorMessage ( " \n " ) ; QApplication :: quit ( ) ; } } delete configGUI ; }
Displays the Options dialog.
Displays the Options dialog .
// Restart GProxy.