Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About dialog not closing when close button is clicked #76

Closed
zensubz opened this issue Jan 15, 2018 · 3 comments
Closed

About dialog not closing when close button is clicked #76

zensubz opened this issue Jan 15, 2018 · 3 comments
Assignees
Labels
Milestone

Comments

@zensubz
Copy link

zensubz commented Jan 15, 2018

Hi,
Compiled the git-snapshot 82e4142. Just a small issue with the 'About' dialog. It doesn't seem to close when I click on 'Close'.

ksnip-about

Thanks for developing this nice screenshot tool..!

@DamirPorobic DamirPorobic self-assigned this Jan 15, 2018
@DamirPorobic DamirPorobic added this to the v1.5.0 milestone Jan 15, 2018
@DamirPorobic
Copy link
Member

Well, that definitely doesn't look right xD
Thanks for reporting, I'll have a look into that.

@zensubz
Copy link
Author

zensubz commented Jan 15, 2018

The following patch seems to work in my case:

--- ksnip-82e4142/src/gui/AboutDialog.cpp
+++ ksnip-82e4142/src/gui/AboutDialog.cpp.new
@@ -43,7 +43,7 @@
     mTabWidget->setMinimumSize(mTabWidget->sizeHint());
 
     mCloseButton->setText(tr("Close"));
-    connect(mCloseButton, &QPushButton::clicked, &AboutDialog::close);
+    connect(mCloseButton, &QPushButton::clicked, this, &AboutDialog::close);
 
     mMainLayout->addLayout(mHeaderLayout);
     mMainLayout->addWidget(mTabWidget);

I am not sure if any other dialog with 'Close' is affected...

@DamirPorobic DamirPorobic changed the title About dialog About dialog not closing when close button is clicked Jan 15, 2018
@DamirPorobic
Copy link
Member

Yes indeed, that was the issue, I must have broken it while moving from Qt4 to Qt5. It should be working now. Thanks again for reporting and providing the patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants