summaryrefslogtreecommitdiff
path: root/libopie2/opieui/big-screen/osplitter.cpp
Unidiff
Diffstat (limited to 'libopie2/opieui/big-screen/osplitter.cpp') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opieui/big-screen/osplitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opieui/big-screen/osplitter.cpp b/libopie2/opieui/big-screen/osplitter.cpp
index 78e919a..5d1e2cf 100644
--- a/libopie2/opieui/big-screen/osplitter.cpp
+++ b/libopie2/opieui/big-screen/osplitter.cpp
@@ -218,25 +218,25 @@ void OSplitter::addWidget( QWidget* wid, const QString& icon, const QString& lab
218 218
219 m_container.append( cont ); 219 m_container.append( cont );
220 220
221 /* 221 /*
222 * 222 *
223 */ 223 */
224 if (!m_splitter.isEmpty() && (m_tabWidget || m_parentTab ) ) 224 if (!m_splitter.isEmpty() && (m_tabWidget || m_parentTab ) )
225 setTabWidget( m_parentTab ); 225 setTabWidget( m_parentTab );
226 else 226 else
227 { 227 {
228 if (m_hbox ) 228 if (m_hbox )
229 addToBox( cont ); 229 addToBox( cont );
230 else 230 else if (m_tabWidget)
231 addToTab( cont ); 231 addToTab( cont );
232 } 232 }
233} 233}
234 234
235 235
236/** 236/**
237 * Removes the widget from the tab widgets if necessary. 237 * Removes the widget from the tab widgets if necessary.
238 * OSplitter drops ownership of this widget and the widget 238 * OSplitter drops ownership of this widget and the widget
239 * will be reparented i tto 0. 239 * will be reparented i tto 0.
240 * The widget will not be deleted. 240 * The widget will not be deleted.
241 * 241 *
242 * @param w The widget to be removed 242 * @param w The widget to be removed