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