fixed screen id comparision
This commit is contained in:
parent
cb009c0f6e
commit
20ada4fcf2
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue