From fae863310c13dcbcdca774db80cab5b138c1fca9 Mon Sep 17 00:00:00 2001 From: sum2012 Date: Fri, 28 Oct 2016 05:11:05 +0800 Subject: [PATCH] Build fix for Linux QT --- UI/ChatScreen.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI/ChatScreen.cpp b/UI/ChatScreen.cpp index 66b2febac6..11c283e64d 100644 --- a/UI/ChatScreen.cpp +++ b/UI/ChatScreen.cpp @@ -22,6 +22,7 @@ void ChatMenu::CreatePopupContents(UI::ViewGroup *parent) { #if defined(_WIN32) || defined(USING_QT_UI) chatEdit_ = bottom->Add(new TextEdit("", n->T("Chat Here"), new LinearLayoutParams(1.0))); +#if defined(USING_WIN_UI) if (g_Config.bBypassOSKWithKeyboard && !g_Config.bFullScreen) { std::wstring titleText = ConvertUTF8ToWString(n->T("Chat")); @@ -31,6 +32,7 @@ void ChatMenu::CreatePopupContents(UI::ViewGroup *parent) { chatEdit_->SetText(ConvertWStringToUTF8(inputChars)); } } +#endif chatEdit_->OnEnter.Handle(this, &ChatMenu::OnSubmit); bottom->Add(new Button(n->T("Send")))->OnClick.Handle(this, &ChatMenu::OnSubmit);