1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge pull request #86 from F1ynn/master

Fix segfault when using custom window borders
This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-07-05 10:09:45 +02:00
commit 45563eafba

View File

@ -87,7 +87,6 @@ Widget::Widget(QWidget *parent) :
setWindowFlags(Qt::CustomizeWindowHint);
setWindowFlags(Qt::FramelessWindowHint);
setAttribute(Qt::WA_DeleteOnClose);
addAction(ui->actionClose);
@ -796,13 +795,16 @@ bool Widget::event(QEvent * e)
inResizeZone = true;
if (yMouse >= wHeight - PIXELS_TO_ACT)
{
setCursor(Qt::SizeFDiagCursor);
resizeWindow(k);
}
else if (yMouse <= PIXELS_TO_ACT)
{
setCursor(Qt::SizeBDiagCursor);
else
setCursor(Qt::SizeHorCursor);
resizeWindow(k);
}
resizeWindow(k);
}
else
{