From 1be0c054e41ceb774adf3143eb0bdcdd894f0d47 Mon Sep 17 00:00:00 2001
From: Rafael <Syping@users.noreply.github.com>
Date: Wed, 6 Apr 2016 17:38:31 +0200
Subject: [PATCH] scroll to insert widget at import copy

---
 ProfileInterface.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ProfileInterface.cpp b/ProfileInterface.cpp
index 9867fd4..7c36ed3 100755
--- a/ProfileInterface.cpp
+++ b/ProfileInterface.cpp
@@ -168,6 +168,9 @@ void ProfileInterface::insertSnapmaticIPI(QWidget *widget)
 #endif
         int picIndex = pictureKeyList.indexOf(QRegExp(widgetKey));
         ui->vlSnapmatic->insertWidget(picIndex, proWidget);
+
+        qApp->processEvents();
+        ui->saProfile->ensureWidgetVisible(proWidget, 0, 0);
     }
 }
 
@@ -182,6 +185,9 @@ void ProfileInterface::insertSavegameIPI(QWidget *widget)
         qSort(savegameKeyList.begin(), savegameKeyList.end());
         int sgdIndex = savegameKeyList.indexOf(QRegExp(widgetKey));
         ui->vlSavegame->insertWidget(sgdIndex, proWidget);
+
+        qApp->processEvents();
+        ui->saProfile->ensureWidgetVisible(proWidget, 0, 0);
     }
 }