diff options
| author | Elvis Angelaccio <[email protected]> | 2020-11-10 00:05:27 +0100 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2020-11-10 00:05:27 +0100 |
| commit | 6719072837f30c1822768da65e6ea222e987e32f (patch) | |
| tree | b61a3c588561946e9d462e23379d44fbdeed185b /src/main.cpp | |
| parent | e5d137b81debbbfe51c18d16d361fd28a3448416 (diff) | |
| parent | 63f4981fe01d88b2ef1b27e0577d7f5d4c8cc485 (diff) | |
Merge branch 'release/20.12'
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index ef2905d77..a4b1b1963 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -21,6 +21,7 @@ #include <KCrash> #include <KDBusService> #include <KLocalizedString> +#include <KToolBar> #include <Kdelibs4ConfigMigrator> #include <KConfigGui> @@ -213,6 +214,12 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv) } } } + Qt::ToolBarArea area = mainWindow->toolBarArea(mainWindow->toolBar()); + if (area != Qt::TopToolBarArea && area != Qt::BottomToolBarArea) { + // Migrate users with disabled tool bar positions. + // Remove this a few years from now (2020). + mainWindow->addToolBar(Qt::TopToolBarArea, mainWindow->toolBar()); + } #ifdef HAVE_KUSERFEEDBACK auto feedbackProvider = DolphinFeedbackProvider::instance(); |
