Francklin2 / RTKLIB_Touchscreen_GUI

RTKLIB GUI for Raspberry Pi with touchscreen made with Qt by the ENSG students
172 stars 65 forks source link

Help button close application #7

Closed kikislater closed 8 years ago

kikislater commented 8 years ago

Is it a functionnality to close the software when clicking on Help button ? I think it's not a good idea. Help come in foreground, when we close the pdf viewer launched by help button we should return to the software. Tell me what you do you think.

The workaround is very simple. Actually we have this code in mainwindow.cpp : void MainWindow::OuvreHelp()

{
    QDesktopServices::openUrl(QUrl("./doc/manual_RTKBASE.pdf"));
    //this->hide();
    qApp->quit();
}

We just have to comment the line 132 like this : void MainWindow::OuvreHelp()

{
    QDesktopServices::openUrl(QUrl("./doc/manual_RTKBASE.pdf"));
    //this->hide();
    //qApp->quit();
}

Tell me if you want I remove the quit finction

Francklin2 commented 8 years ago

Yes it's a good idea to remove this, i noticed too that it was not helpfull to close the app like this

kikislater commented 8 years ago

Ok updated and closed