Fixed couple bugs and memory leaks from panels
[situare] / src / ui / panelsidebar.cpp
index 1865933..87d63c5 100644 (file)
@@ -58,7 +58,9 @@ void PanelSideBar::paintEvent(QPaintEvent *)
 
 void PanelSideBar::reDrawSidebar(int width, int height)
 {
+    Q_UNUSED(height);
     qDebug() << __PRETTY_FUNCTION__;
-    if(this->objectName() == "left");
-    this->move(width-21,0);
+    if(this->objectName() == "SidePanelRight") {
+        this->move(width-21,0);
+    }
 }