]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmainwindow.cpp
Fix position of Dolphin menu with multiple-screens setup
[dolphin.git] / src / dolphinmainwindow.cpp
index 9324cdb21a9e393d2702803bdf6753683a0665d3..3b5f493ca903be55baa485d6f20013c28567a1af 100644 (file)
@@ -824,6 +824,7 @@ void DolphinMainWindow::find()
 
 void DolphinMainWindow::slotSearchLocationChanged()
 {
+#ifdef HAVE_NEPOMUK
     QDockWidget* searchDock = findChild<QDockWidget*>("searchDock");
     if (!searchDock) {
         return;
@@ -835,6 +836,7 @@ void DolphinMainWindow::slotSearchLocationChanged()
                                        ? SearchPanel::FromCurrentDir
                                        : SearchPanel::Everywhere);
     }
+#endif
 }
 
 void DolphinMainWindow::updatePasteAction()
@@ -2277,6 +2279,8 @@ void ToolBarMenu::showEvent(QShowEvent* event)
         pos.ry() = button->mapToGlobal(QPoint(0, 0)).y() - height();
     }
 
+    pos += screen.topLeft();
+
     move(pos);
 }