Changeset 11758


Ignore:
Timestamp:
Jan 23, 2011, 6:40:29 PM (11 years ago)
Author:
jordan
Message:

(trunk qt) #3938 "the defualt config directory isn't created by the Qt client" -- minor revision to r11755 to handle the case of custom config directories passed in via the command line.

transmission-daemon and transmission-gtk will create these custom config directories if they don't exist. transmission-qt should, too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/app.cc

    r11755 r11758  
    137137
    138138    // set the fallback config dir
    139     if( configDir == 0 ) {
     139    if( configDir == 0 )
    140140        configDir = tr_getDefaultConfigDir( MY_CONFIG_NAME );
    141141
    142         // ensure the config directory exists
    143         QDir dir( configDir );
    144         if( !dir.exists() )
    145             dir.mkpath( configDir );
    146     }
     142    // ensure our config directory exists
     143    QDir dir( configDir );
     144    if( !dir.exists() )
     145        dir.mkpath( configDir );
    147146
    148147    // is this the first time we've run transmission?
Note: See TracChangeset for help on using the changeset viewer.