src/gui.cpp

changeset 399
13d24c6eb423
parent 395
5210bcb1d7e0
child 402
ec95fc95e5f3
--- a/src/gui.cpp	Tue Jul 16 21:02:12 2013 +0300
+++ b/src/gui.cpp	Thu Jul 18 13:13:26 2013 +0300
@@ -184,13 +184,7 @@
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 // =============================================================================
 void ForgeWindow::updateToolBars() {
-	// Update the quick color toolbar.
-	for (QToolButton* btn : m_colorButtons)
-		delete btn;
-	
 	m_colorButtons.clear();
-	
-	// Clear the toolbar - we deleted the buttons but there's still separators
 	ui->colorToolbar->clear();
 	
 	for (LDQuickColor& entry : m_quickColors) {

mercurial