зеркало из https://github.com/mozilla/pjs.git
Fix merge error that caused first character of URL typed into Location field to be lost (pierre/sdagley)
This commit is contained in:
Родитель
1e963a652b
Коммит
f5f13bfeab
|
@ -771,16 +771,16 @@ void CBrowserWindow::ListenToMessage(MessageT inMessage, void* ioParam)
|
|||
|
||||
case msg_UserSubmittedURL:
|
||||
// user hit enter or return in URL edit field
|
||||
CStr255* urlString = (CStr255*)ioParam;
|
||||
if (urlString && mContext)
|
||||
const char* urlString = (const char*)ioParam;
|
||||
|
||||
if (urlString && *urlString && mContext)
|
||||
{
|
||||
/* old way
|
||||
URL_Struct* theURL =
|
||||
NET_CreateURLStruct(*urlString, NET_DONT_RELOAD);
|
||||
mContext->SwitchLoadURL(theURL, FO_CACHE_AND_PRESENT);
|
||||
*/
|
||||
if (!urlString->IsEmpty())
|
||||
SendAEGetURL(*urlString);
|
||||
SendAEGetURL(urlString);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче