fix segfault if urlhandler is not defined in golded.cfg
This commit is contained in:
parent
e2c0c182de
commit
5cde6a3023
@ -10,6 +10,12 @@ _____________________________________________________________________________
|
||||
‡ ¬¥âª¨ ¤«ï GoldED+ 1.1.5, /snapshot/
|
||||
_____________________________________________________________________________
|
||||
|
||||
! …᫨ ¥â ¨ ®¤®£® URLHANDLER ¨ ¢ë§ë¢ ¥âáï READpeekURLs, Golded+ ⥯¥àì ¥
|
||||
¯ ¤ ¥â á segmentation fault.
|
||||
|
||||
+ <20>®¢ ï ¤¨à¥ªâ¨¢ ä ©« goldlang.cfg "IL_PEEKINFONOHANDLER" (á®®¡é¥¨¥ " URL
|
||||
handler are not defined in config file! ")
|
||||
|
||||
! <20>¥à¥ § ç¥ë ª« ¢¨è¨: Ctrl-Backspace ⥯¥àì 㤠«ï¥â ᨬ¢®« ¢«¥¢®, Ctrl-W
|
||||
㤠«ï¥â á«®¢® ¢«¥¢®. (Ž¡å®¤ ¡ £ á ®¯à¥¤¥«¥¨¥¬ Ctrl-Backspace ¢ Linux.)
|
||||
|
||||
|
@ -10,7 +10,13 @@ ______________________________________________________________________
|
||||
Notes for GoldED+ 1.1.5, /snapshot/
|
||||
______________________________________________________________________
|
||||
|
||||
! Keyboard shortcats is chnged: now Ctrl-Backspace deletes char to
|
||||
! If not defined any URLHANDLER and key "READpeekURLs" is pressed,
|
||||
Golded+ does not trap now (segmentation fault fixed).
|
||||
|
||||
+ New token IL_PEEKINFONOHANDLER for goldlang.cfg (message
|
||||
" URL handler are not defined in config file! "
|
||||
|
||||
! Keyboard shortcats is changed: now Ctrl-Backspace deletes char to
|
||||
left and Ctrl-W deletes word to left. (Workaround to Ctrl-Backspace
|
||||
detection bug in Linux.)
|
||||
|
||||
|
@ -721,6 +721,13 @@ static bool PeekURLCmp(const std::string &a, const std::string b)
|
||||
|
||||
void ReadPeekURLs(GMsg* msg)
|
||||
{
|
||||
if( CFG->urlhandler.empty() )
|
||||
{
|
||||
w_info(LNG->PeekInfoNoHandler);
|
||||
waitkeyt(10000);
|
||||
w_info(NULL);
|
||||
return;
|
||||
}
|
||||
w_info(LNG->Wait);
|
||||
|
||||
// Scan the current msg for urls
|
||||
|
Reference in New Issue
Block a user