From b74d7f0f32fe6d1082becc707a85defeb201506b Mon Sep 17 00:00:00 2001 From: Kjell Kernen Date: Mon, 10 Feb 2014 18:01:43 +0100 Subject: [PATCH] Added code for creating new profiles. --- companion/src/mainwindow.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/companion/src/mainwindow.cpp b/companion/src/mainwindow.cpp index 4a134983f..35fce6fff 100644 --- a/companion/src/mainwindow.cpp +++ b/companion/src/mainwindow.cpp @@ -2203,6 +2203,28 @@ void MainWindow::updateProfilesActions() void MainWindow::createProfile() { + int firstFreeIndex = 0; + QSettings settings; + settings.beginGroup("Profiles"); + for (int i=0; firstFreeIndex ==0 && i