Path: blob/main/editors/fxite/files/patch-src_appwin__base.cpp
16461 views
--- src/appwin_base.cpp.orig 2013-10-03 09:22:51 UTC1+++ src/appwin_base.cpp2@@ -25,6 +25,7 @@3#include "prefs.h"4#include "lang.h"56+#include "compat.h"7#include "scidoc.h"8#include "filer.h"9#include "toolmgr.h"10@@ -45,7 +46,6 @@11#include "cmd_utils.h"12#include "scidoc_util.h"13#include "foreachtab.h"14-#include "compat.h"1516#include "intl.h"17#include "appwin_base.h"18@@ -405,7 +405,14 @@ long TopWindowBase::onTimer(FXObject*o, FXSelector sel19long TopWindowBase::onCloseWait(FXObject*o, FXSelector sel, void*p)20{21if (FXSELTYPE(sel)==SEL_CHORE) {22- getApp()->addTimeout(this,ID_CLOSEWAIT, ONE_SECOND/10, NULL);23+ static FXint CloseWaitChoreCount=10;24+ if (CloseWaitChoreCount>0) {25+ CloseWaitChoreCount--;26+ getApp()->addChore(this,ID_CLOSEWAIT, NULL);27+ } else {28+ CloseWaitChoreCount=10;29+ getApp()->addTimeout(this,ID_CLOSEWAIT, ONE_SECOND/10, NULL);30+ }31} else {32close();33}34@@ -1246,7 +1253,12 @@ void TopWindowBase::ParseCommands(FXString &commands)35FXString filename=sect.text();36if (rowcol.empty()) {37FXint beg,end;38- if (rx_rowcol.match(filename,&beg,&end)) {39+#ifdef FOX_1_7_50_OR_NEWER40+ if (rx_rowcol.search(filename,0,filename.length(),Normal,&beg,&end,1)>=0)41+#else42+ if (rx_rowcol.match(filename,&beg,&end))43+#endif44+ {45if (!FXStat::isFile(filename)) {46rowcol=filename.mid(beg,end-beg).text();47filename=filename.left(beg).text();484950