Changeset 11755


Ignore:
Timestamp:
Jan 23, 2011, 4:55:15 PM (11 years ago)
Author:
jordan
Message:

(trunk qt) #3938 "The default config directory isn't created by the Qt client" -- fixed.

Summary says it all. Patch by luksan with minor formatting changes (and, no doubt, a new bug) by me.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/app.cc

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