Bug 94886 - Main part actions are not available in page viewer
Summary: Main part actions are not available in page viewer
Status: RESOLVED FIXED
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: cvs
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-11 01:47 UTC by Frank Osterfeld
Modified: 2004-12-12 22:16 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Osterfeld 2004-12-11 01:47:47 UTC
When a page viewer is active, the actions of the main part are not available.  
At least important actions like "Configure Akregator" should be available in  
the page viewer.
Comment 1 George Staikos 2004-12-12 22:16:28 UTC
CVS commit by staikos: 

merge the main part UI with the HTML part
(note: results in 2 print actions... needs to be fixed)
BUG: 94886


  M +8 -0      akregator_part.cpp   1.117
  M +2 -0      akregator_part.h   1.49
  M +1 -0      akregator_view.cpp   1.193


--- kdepim/akregator/src/akregator_part.cpp  #1.116:1.117
@@ -502,4 +502,12 @@ QPixmap aKregatorPart::takeTrayIconScree
 }
 
+void aKregatorPart::reMerge()
+{
+    KParts::MainWindow *mw = dynamic_cast<KParts::MainWindow*>(getMainWindow());
+    if (mw) {
+        mw->guiFactory()->addClient(this);
+    }
+}
+
 QWidget* aKregatorPart::getMainWindow()
 {

--- kdepim/akregator/src/akregator_part.h  #1.48:1.49
@@ -75,4 +75,6 @@ namespace Akregator
             void setCanceled(const QString &s);
             
+            void reMerge();
+            
             /**
              * Informs trayicon about new articles

--- kdepim/akregator/src/akregator_view.cpp  #1.192:1.193
@@ -680,4 +680,5 @@ void aKregatorView::slotFrameChanged(Fra
     m_part->setProgress(f->progress());
     m_part->setStatusBar(f->statusText());
+    m_part->reMerge();
 
     switch (f->state())