Changeset 3644943


Ignore:
Timestamp:
04/28/15 12:57:21 (3 months ago)
Author:
Ken Moore <ken@…>
Branches:
enter/10, releng/10.1.2
Children:
a4a1846
Parents:
376ff0d
git-author:
Ken Moore <ken@…> (04/28/15 12:31:54)
git-committer:
Ken Moore <ken@…> (04/28/15 12:57:21)
Message:

In the LP-Tray, always make sure that the file changed signal/slot also ensure that the file is still being watched and it was nor removed for some reason.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt5/life-preserver/lp-tray/LPWatcher.cpp

    re6a5b39 r3644943  
    191191      LOGS.insert(15, time); // time only 
    192192      if(!quiet){ emit MessageAvailable("message"); } 
    193     }else if(message.contains("starting replication", Qt::CaseInsensitive)){ 
     193    }else if(message.contains("Starting replication", Qt::CaseInsensitive)){ 
    194194      //Setup the file watcher for this new log file 
    195195      FILE_REPLICATION = dev; 
     
    406406  if(file == FILE_LOG){ readLogFile(); } 
    407407  else  if(file == FILE_REPLICATION){ readReplicationFile(); } 
     408  //Make sure the watched files were not removed for some reason 
     409  QStringList wfiles = watcher->files(); 
     410  if( !wfiles.contains(file) ){ watcher->addPath(file); } //There will always be one signal like this when it is removed 
    408411} 
    409412 
Note: See TracChangeset for help on using the changeset viewer.