View Issue Details

IDProjectCategoryView StatusLast Update
0006932ScribusUsabilitypublic2008-04-13 22:26
ReporterAlpha1650 Assigned Tosubik  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Fixed in Version1.3.5svn 
Summary0006932: scribus main window always catches attention while running long-during script
DescriptionHello,

I wrote a script that runs about 20 to 30 minutes. I use this time to do other things but Scribus seems that it doesn't want me to do other stuff. It often pops up and disturbs me.

I talked to avox about the issue and he said that it might be possible to let the main window raise only if the scriptrunning-flag isn't set. I tried to implement this by adding three if-statements. The patch is appended. I hope it's right and helps.

Greetings!

p.s.: Currently rerunning the script for testing reasons, seems to work ...
TagsNo tags attached.
Patch

Activities

2008-04-08 18:03

 

raise.txt (1,126 bytes)   
Index: scribus/scribusview.cpp
===================================================================
--- scribus/scribusview.cpp     (Revision 11949)
+++ scribus/scribusview.cpp     (Arbeitskopie)
@@ -811,7 +811,8 @@
                e->acceptProposedAction();
                //<<#3524
                activateWindow();
-               raise();
+               if (!m_ScMW->ScriptRunning)
+                       raise();
                m_ScMW->newActWin(Doc->WinHan);
                updateContents();
                //>>
Index: scribus/scribus.cpp
===================================================================
--- scribus/scribus.cpp (Revision 11949)
+++ scribus/scribus.cpp (Arbeitskopie)
@@ -6679,7 +6679,8 @@
 void ScribusMainWindow::setMainWindowActive()
 {
        activateWindow();
-       raise();
+       if(! ScriptRunning)
+               raise();
 }
 
 void ScribusMainWindow::setItemTypeStyle(int id)
@@ -7753,7 +7754,8 @@
 //     pdfToolBar->initVisibility();
 
        activateWindow();
-       raise();
+       if(! ScriptRunning)
+               raise();
 }
 
 void ScribusMainWindow::doPrintPreview()
raise.txt (1,126 bytes)   

Issue History

Date Modified Username Field Change
2008-04-08 18:03 Alpha1650 New Issue
2008-04-08 18:03 Alpha1650 File Added: raise.txt
2008-04-09 19:26 subik Status new => assigned
2008-04-09 19:26 subik Assigned To => subik
2008-04-09 19:48 subik Status assigned => resolved
2008-04-09 19:48 subik Fixed in Version => 1.3.5svn
2008-04-09 19:48 subik Resolution open => fixed
2008-04-13 22:26 jghali Status resolved => closed