Pushed that fix to master (ie. PageEdit can only be launched when current tab is xhtml or opf tab).
BTW, in Resource.cpp it seems the we note the file system last modified date on that resource file and if it ever changes, we emit a ResourceUpdatedOnDisk signal which ends with a call to LoadFromDisk.
I am not sure if this does exactly the same thing as a FileWatcher does but it might be enough to allow "Open With" on PageEdit's OPF to work for BetterRed without specifically
watching all of the xhtml files.
I am just not sure. I could not find any other mechanism that would allow an xhtml resource to detect its disk version has been modified underneath it (other than the official FileWatcher).
|