[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenox/konq-embed
From: Stefan Eilers <stefan.eilers () basyskom ! de>
Date: 2008-06-02 11:35:11
Message-ID: 1212406511.418458.3756.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 815620 by eilers:
Fix incorrect tab counting: When a tab was closed by javascript, the tabcount was not updated.
M +2 -0 ChangeLog
M +11 -0 src/mainwindow_road.cc
M +2 -0 src/mainwindow_road.h
--- trunk/kdenox/konq-embed/ChangeLog #815619:815620
@@ -1,3 +1,5 @@
+2008-06-02 Stefan Eilers <stefan.eilers@basyskom.de>
+ * Fix incorrect tab counting: When a tab was closed by javascript, the tabcount was not updated.
2008-05-27 Stefan Eilers <stefan.eilers@basyskom.de>
* Store settings into special Qtopia directories
2008-05-26 Stefan Eilers <stefan.eilers@basyskom.de>
--- trunk/kdenox/konq-embed/src/mainwindow_road.cc #815619:815620
@@ -333,6 +333,17 @@
// updateTabCloseButton();
}
+// The tab counter needs to be updated when a view was destroyed
+// (maybe it is killing itself using javascript: window.close())
+// We use the default implementation which is doing all the book keeping for us.
+// But we need to update the tab counter display.
+void MainWindowRoad::viewDestroyed()
+{
+ MainWindowBase::viewDestroyed();
+
+ updateTabCountDisplay();
+}
+
void MainWindowRoad::closeView( View *view )
{
kdDebug() << "MainWindowRoad::closeView( View *view )" << endl;
--- trunk/kdenox/konq-embed/src/mainwindow_road.h #815619:815620
@@ -94,6 +94,8 @@
void slotClearURLHistory();
void slotShowURLHistory();
void slotOpenHistoryUrl( const QString& url );
+ void viewDestroyed();
+
private:
void initMainToolbar();
void disableUnusedComponents();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic