~ubuntu-branches/ubuntu/wily/psi/wily-proposed

« back to all changes in this revision

Viewing changes to src/psioptions.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2009-09-25 17:49:51 UTC
  • mfrom: (6.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090925174951-lvm7kdap82o8xhn3
Tags: 0.13-1
* Updated to upstream version 0.13
* Set Standards-Version to 3.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
211
211
        }
212
212
 
213
213
        setOption("options.status.auto-away.message", tr("Auto Status (idle)"));
214
 
        
 
214
 
215
215
        return ok;
216
216
}
217
217
 
218
218
 
219
219
/**
 
220
 * Checks for existing saved Options.
 
221
 * Does not guarantee that load succeeds if the config file was corrupted.
 
222
 */
 
223
bool PsiOptions::exists(QString fileName) {
 
224
        return OptionsTree::exists(fileName);
 
225
}
 
226
 
 
227
/**
220
228
 * Loads the options present in the xml config file named.
221
229
 * \param file Name of the xml config file to load
222
230
 * \return Success
306
314
 */
307
315
void PsiOptions::saveToAutoFile()
308
316
{
309
 
        if (autoFile_ != "") {
 
317
        if (!autoFile_.isEmpty()) {
310
318
                save(autoFile_);
311
319
        }
312
320
}