fixed screen id comparision

This commit is contained in:
Rafael 2016-11-20 13:39:12 +01:00
parent cb009c0f6e
commit 20ada4fcf2
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ void PictureWidget::setImage(QImage image_)
void PictureWidget::updateWindowSize(int screenID)
{
if (screenID = QApplication::desktop()->screenNumber(this))
if (screenID == QApplication::desktop()->screenNumber(this))
{
QRect desktopRect = QApplication::desktop()->screenGeometry(this);
this->move(desktopRect.x(), desktopRect.y());