Author: craig
Date: Fri Apr 10 21:22:57 2020
New Revision: 23586

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23586
Log:
#15912: Process events differently on start up to catch file open events from 
document double click events

Modified:
    trunk/Scribus/scribus/scribusapp.cpp

Modified: trunk/Scribus/scribus/scribusapp.cpp
URL: 
http://scribus.net/websvn/diff.php?repname=Scribus&rev=23586&path=/trunk/Scribus/scribus/scribusapp.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusapp.cpp        (original)
+++ trunk/Scribus/scribus/scribusapp.cpp        Fri Apr 10 21:22:57 2020
@@ -352,8 +352,9 @@
        if (!m_ScCore)
                return EXIT_FAILURE;
        ScCore=m_ScCore;
+       
processEvents(QEventLoop::ExcludeUserInputEvents|QEventLoop::ExcludeSocketNotifiers,1000);
+       ScCore->init(useGUI, m_filesToLoad);
        processEvents();
-       ScCore->init(useGUI, m_filesToLoad);
        int retVal=EXIT_SUCCESS;
        /* TODO:
         * When Scribus is truly able to run without GUI
@@ -362,7 +363,6 @@
         */
        // if (useGUI)
        retVal=ScCore->startGUI(m_showSplash, m_showFontInfo, 
m_showProfileInfo, m_lang);
-
        // A hook for plugins and scripts to trigger on. Some plugins and 
scripts
        // require the app to be fully set up (in particular, the main window 
to be
        // built and shown) before running their setup.
@@ -675,6 +675,7 @@
 
 void ScribusQApp::downloadComplete(const QString &t)
 {
+       Q_UNUSED(t)
        //qDebug()<<"ScribusQApp: download finished:"<<t;
 }
 


_______________________________________________
scribus-commit mailing list
[email protected]
http://lists.scribus.net/mailman/listinfo/scribus-commit

Reply via email to