Permalink
Browse files

oops, forgot to save a change to the new system flags file before com…

…mitting.
  • Loading branch information...
1 parent e161134 commit 696b4b5d342d29f2e0cf5a0a63724961ae528d61 Ken Moore committed Mar 26, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src-qt4/libpcbsd/utils/pcbsd-sysFlags.cpp
@@ -36,7 +36,6 @@ void SystemFlagWatcher::watchFlagDir(){
}
void SystemFlagWatcher::watcherNotification(){
- //Does not specify the contents of a flag just yet - KenMoore 3/12/14
QDir dir(FLAGDIR);
if(!dir.exists()){ return; } //flag directory does not exist yet - do nothing
QFileInfoList flags = dir.entryInfoList( QDir::Files | QDir::NoDotAndDotDot, QDir::Time);
@@ -65,6 +64,7 @@ void SystemFlagWatcher::watcherNotification(){
}
QString SystemFlagWatcher::quickRead(QString filepath){
+ //only need one line from the file
if(filepath.isEmpty()){ return ""; }
QFile file(filepath);
if( !file.open(QIODevice::ReadOnly | QIODevice::Text) ){ return ""; }

0 comments on commit 696b4b5

Please sign in to comment.