scrollbar bug fixed

This commit is contained in:
Rafael 2016-04-03 01:43:04 +02:00
parent 58b3843e94
commit 0510b47a93

View file

@ -27,11 +27,13 @@
#include <QSpacerItem> #include <QSpacerItem>
#include <QMessageBox> #include <QMessageBox>
#include <QFileDialog> #include <QFileDialog>
#include <QScrollBar>
#include <QFileInfo> #include <QFileInfo>
#include <QPalette> #include <QPalette>
#include <QRegExp> #include <QRegExp>
#include <QDebug> #include <QDebug>
#include <QColor> #include <QColor>
#include <QTimer>
#include <QFile> #include <QFile>
#include <QUrl> #include <QUrl>
#include <QDir> #include <QDir>
@ -345,10 +347,12 @@ void ProfileInterface::on_profileWidgetDeselected()
{ {
if (selectedWidgts == 1) if (selectedWidgts == 1)
{ {
int scrollBarValue = ui->saProfile->verticalScrollBar()->value();
foreach(ProfileWidget *widget, widgets.keys()) foreach(ProfileWidget *widget, widgets.keys())
{ {
widget->setSelectionMode(false); widget->setSelectionMode(false);
} }
ui->saProfile->verticalScrollBar()->setValue(scrollBarValue);
} }
selectedWidgts--; selectedWidgts--;
} }