diff --git a/src/quick-access.cpp b/src/quick-access.cpp index 2d60d12..0684209 100644 --- a/src/quick-access.cpp +++ b/src/quick-access.cpp @@ -1,8 +1,11 @@ +#if !defined(_WIN32) && !define(__APPLE__) +#include +#endif + #include "quick-access.hpp" #include "quick-access-dock.hpp" #include "quick-access-utility.hpp" -#include #include #include #include @@ -1695,7 +1698,7 @@ void QuickAccess::on_actionSourceUp_triggered() if (_qaLists.size() == 0) { return; } - auto qa = _qaLists[0]; + QuickAccessSourceListView qa = _qaLists[0]; auto model = qa.model; auto index = qa.listView->currentIndex(); auto newRow = index.row() - 1; @@ -1720,7 +1723,7 @@ void QuickAccess::on_actionSourceDown_triggered() if (_qaLists.size() == 0) { return; } - auto qa = _qaLists[0]; + QuickAccessSourceListView qa = _qaLists[0]; auto model = qa.model; auto index = qa.listView->currentIndex(); auto newRow = index.row() + 1;