Changeset 4169 in ntrip
- Timestamp:
- May 14, 2012, 2:17:28 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r4168 r4169 712 712 //////////////////////////////////////////////////////////////////////////// 713 713 void bncApp::setConfFileName(const QString& confFileName) { 714 if (_confFileName.isEmpty()) { // do it only once 715 if (confFileName.isEmpty()) { 716 _confFileName = QDir::homePath() + QDir::separator() 717 + ".config" + QDir::separator() 718 + organizationName() + QDir::separator() 719 + applicationName() + ".ini"; 720 } 721 else { 722 _confFileName = confFileName; 723 } 714 if (confFileName.isEmpty()) { 715 _confFileName = QDir::homePath() + QDir::separator() 716 + ".config" + QDir::separator() 717 + organizationName() + QDir::separator() 718 + applicationName() + ".ini"; 719 } 720 else { 721 _confFileName = confFileName; 724 722 } 725 723 } … … 796 794 bool bncApp::event(QEvent* ev) { 797 795 798 if (ev->type() == QEvent::FileOpen) { 796 if (ev->type() == QEvent::FileOpen) { // currently happens on Mac only 799 797 QString fileName = static_cast<QFileOpenEvent*>(ev)->file(); 800 798 setConfFileName(fileName);
Note:
See TracChangeset
for help on using the changeset viewer.