Commit 2e415011 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov
parent 3df993de
...@@ -152,6 +152,8 @@ QPushButton:focus{border:none;outline:none;}"); ...@@ -152,6 +152,8 @@ QPushButton:focus{border:none;outline:none;}");
QAscMainWindow w(NULL, pApplicationManager); QAscMainWindow w(NULL, pApplicationManager);
w.show(); w.show();
w.setWindowTitle("ASCDesktopEditor");
bool bIsOwnMessageLoop = false; bool bIsOwnMessageLoop = false;
application_cef->RunMessageLoop(bIsOwnMessageLoop); application_cef->RunMessageLoop(bIsOwnMessageLoop);
......
...@@ -155,7 +155,11 @@ void CApplicationCEF::Init_CEF(CAscApplicationManager* pManager, int argc, char* ...@@ -155,7 +155,11 @@ void CApplicationCEF::Init_CEF(CAscApplicationManager* pManager, int argc, char*
// Populate the settings based on command line arguments. // Populate the settings based on command line arguments.
//AppGetSettings(settings); //AppGetSettings(settings);
#if defined(_LINUX) && !defined(_MAC)
m_pInternal->context.reset(new client::MainContextImpl(command_line, false));
#else
m_pInternal->context.reset(new client::MainContextImpl(command_line, true)); m_pInternal->context.reset(new client::MainContextImpl(command_line, true));
#endif
m_pInternal->context->PopulateSettings(&settings); m_pInternal->context->PopulateSettings(&settings);
#ifdef WIN32 #ifdef WIN32
...@@ -197,7 +201,11 @@ void CApplicationCEF::Init_CEF(CAscApplicationManager* pManager, int argc, char* ...@@ -197,7 +201,11 @@ void CApplicationCEF::Init_CEF(CAscApplicationManager* pManager, int argc, char*
settings.cache_path = _cache; settings.cache_path = _cache;
// Initialize CEF. // Initialize CEF.
#if defined(_LINUX) && !defined(_MAC)
bool bInit = m_pInternal->context->Initialize(main_args, settings, m_pInternal->m_app.get(), sandbox_info);
#else
bool bInit = CefInitialize(main_args, settings, m_pInternal->m_app.get(), sandbox_info); bool bInit = CefInitialize(main_args, settings, m_pInternal->m_app.get(), sandbox_info);
#endif
bool bIsInitScheme = asc_scheme::InitScheme(); bool bIsInitScheme = asc_scheme::InitScheme();
#if defined(_LINUX) && !defined(_MAC) #if defined(_LINUX) && !defined(_MAC)
...@@ -222,8 +230,12 @@ void CApplicationCEF::Close() ...@@ -222,8 +230,12 @@ void CApplicationCEF::Close()
{ {
if (NULL != m_pInternal) if (NULL != m_pInternal)
{ {
#if defined(_LINUX) && !defined(_MAC)
m_pInternal->context->Shutdown();
#else
// Shut down CEF. // Shut down CEF.
CefShutdown(); CefShutdown();
#endif
RELEASEOBJECT(m_pInternal); RELEASEOBJECT(m_pInternal);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment