source: trunk/dports/aqua/qtiplot/files/patch-ApplicationWindow.diff @ 92122

Last change on this file since 92122 was 92122, checked in by nicos@…, 8 years ago

qtiplot: avoid crash without internet connection (ticket #33712)

File size: 1.7 KB
  • qtiplot/src/core/ApplicationWindow.cpp

    old new  
    174174#include <QVarLengthArray>
    175175#include <QList>
    176176#include <QUrl>
    177 #include <QAssistantClient>
     177//#include <QAssistantClient>
    178178#include <QFontComboBox>
    179179#include <QSpinBox>
    180180#include <QMdiArea>
     
    349349        insertTranslatedStrings();
    350350        disableToolbars();
    351351
    352         assistant = new QAssistantClient( QString(), this );
     352        //assistant = new QAssistantClient( QString(), this );
    353353
    354354        connect(tablesDepend, SIGNAL(activated(int)), this, SLOT(showTable(int)));
    355355
     
    1133411334        }
    1133511335
    1133611336        QStringList cmdLst = QStringList() << "-profile" << profilePath;
    11337         QAssistantClient *assist = new QAssistantClient( QString(), 0);
    11338         assist->setArguments( cmdLst );
    11339         assist->showPage(helpPath);
    11340         connect(assist, SIGNAL(assistantClosed()), qApp, SLOT(quit()) );
     11337        //QAssistantClient *assist = new QAssistantClient( QString(), 0);
     11338        //assist->setArguments( cmdLst );
     11339        //assist->showPage(helpPath);
     11340        //connect(assist, SIGNAL(assistantClosed()), qApp, SLOT(quit()) );
    1134111341}
    1134211342
    1134311343void ApplicationWindow::showHelp()
     
    1136811368        }
    1136911369
    1137011370        QStringList cmdLst = QStringList() << "-profile" << profilePath;
    11371         assistant->setArguments( cmdLst );
    11372         assistant->showPage(helpFilePath);
     11371        //assistant->setArguments( cmdLst );
     11372        //assistant->showPage(helpFilePath);
    1137311373}
    1137411374
    1137511375void ApplicationWindow::showPlotWizard()
     
    1622816228        if (hostInfo.error() != QHostInfo::NoError){
    1622916229                QApplication::restoreOverrideCursor();
    1623016230                QMessageBox::critical(this, tr("QtiPlot - Error"), qtiplotWeb + ": " + hostInfo.errorString());
    16231                 exit(0);
     16231//              exit(0);
    1623216232        }
    1623316233
    1623416234        QApplication::restoreOverrideCursor();
Note: See TracBrowser for help on using the repository browser.