stuff

Thu, 18 Jul 2013 13:13:26 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Thu, 18 Jul 2013 13:13:26 +0300
changeset 399
13d24c6eb423
parent 398
7f278b48079a
child 400
af39fae829f6

stuff

src/gui.cpp file | annotate | diff | comparison | revisions
src/history.cpp file | annotate | diff | comparison | revisions
--- 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) {
--- a/src/history.cpp	Tue Jul 16 21:02:12 2013 +0300
+++ b/src/history.cpp	Thu Jul 18 13:13:26 2013 +0300
@@ -177,7 +177,6 @@
 EditHistory::~EditHistory() {}
 
 // =============================================================================
-
 void SwapHistory::undo() const {
 	LDObject::fromID (a)->swap (LDObject::fromID (b));
 }

mercurial