Changeset 4168 in ntrip
- Timestamp:
- May 14, 2012, 2:14:55 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r4167 r4168 712 712 //////////////////////////////////////////////////////////////////////////// 713 713 void bncApp::setConfFileName(const QString& confFileName) { 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; 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 } 722 724 } 723 725 } … … 796 798 if (ev->type() == QEvent::FileOpen) { 797 799 QString fileName = static_cast<QFileOpenEvent*>(ev)->file(); 800 setConfFileName(fileName); 798 801 return true; 799 802 }
Note:
See TracChangeset
for help on using the changeset viewer.