Changeset 733b811


Ignore:
Timestamp:
01/31/14 06:19:45 (7 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.1, releng/10.0.2
Children:
1f245a6
Parents:
97a18ed
Message:

Add a check to make sure the /var/db/pcdm directory exists, and create it if not.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/PCDM/src/pcdm-backend.cpp

    r3b71e5d r733b811  
    307307void Backend::saveDefaultSysEnvironment(QString lang, QString keymodel, QString keylayout, QString keyvariant){ 
    308308  QFile file("/var/db/pcdm/defaultInputs"); 
     309  //Make sure the containing directory exists 
     310  if(!QFile::exists("/var/db/pcdm")){ 
     311    QDir dir; 
     312    dir.mkpath("/var/db/pcdm"); 
     313  } 
     314  //Now save the file 
    309315    if(file.open(QIODevice::WriteOnly | QIODevice::Text) ){ 
    310316      QTextStream out(&file); 
Note: See TracChangeset for help on using the changeset viewer.