projects
/
situare
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9ceac5
)
Removed unnecessary if statement and some old code leftovers
author
Pekka Nissinen
<pekka.nissinen@ixonos.com>
Mon, 16 Aug 2010 07:10:03 +0000
(10:10 +0300)
committer
Pekka Nissinen
<pekka.nissinen@ixonos.com>
Mon, 16 Aug 2010 07:10:03 +0000
(10:10 +0300)
src/ui/paneltabbar.cpp
patch
|
blob
|
history
diff --git
a/src/ui/paneltabbar.cpp
b/src/ui/paneltabbar.cpp
index
7f7b313
..
99c2776
100644
(file)
--- a/
src/ui/paneltabbar.cpp
+++ b/
src/ui/paneltabbar.cpp
@@
-87,18
+87,11
@@
void PanelTabBar::setCurrentIndex(int index)
{
qDebug() << __PRETTY_FUNCTION__;
- if(m_activeTab == -1) {
- m_activeTab = index;
-// m_panelWidgetStack->setCurrentIndex(index);
- emit currentChanged(index);
-// emit toggleState();
- } else if(m_activeTab == index) {
+ if(m_activeTab == index) {
m_activeTab = -1;
emit tabCloseRequested(index);
-// emit toggleState();
} else {
m_activeTab = index;
-// m_panelWidgetStack->setCurrentIndex(index);
emit currentChanged(index);
}
}