fixbug#190237 多次show同一个窗口时,使界面保持跟之前一样

This commit is contained in:
tanjing 2023-10-19 15:08:12 +08:00 committed by xibowen
parent 6238a48547
commit 3777b9f9d4
1 changed files with 4 additions and 0 deletions

View File

@ -2577,6 +2577,10 @@ void KyFileDialogHelper::hide()
bool KyFileDialogHelper::show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent)
{
if(m_isShow){
mKyFileDialog->delayShow();
return true;
}
pDebug << "show........." << (options() == nullptr);
if(parent != nullptr)
pDebug << "window....:" << parent->x() << parent->y() << parent->width() << parent->height();