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

Bug #9280: fix "Add postgis layer" creates a connection that is not removed until qgis is terminated #1051

Closed
wants to merge 2 commits into from

Conversation

ahuarte47
Copy link
Contributor

Changes:

  • Disconnect postgres connections created.
  • Fix deleteLayer not called in thread without event loop.
    From Qt documentation: void QObject::deleteLater() [slot] ...the object will be deleted once the event loop is started. If deleteLater() is called after the main event loop has stopped, the object will not be deleted. Since Qt 4.8, if deleteLater() is called on an object that lives in a thread with no running event loop, the object will be destroyed when the thread finishes.

Fix:
http://hub.qgis.org/issues/9280

from Qt documentation:

void QObject::deleteLater() [slot]
...the object will be deleted once the event loop is started. If
deleteLater() is called after the main event loop has stopped, the
object will not be deleted. Since Qt 4.8, if deleteLater() is called on
an object that lives in a thread with no running event loop, the object
will be destroyed when the thread finishes.
@jef-n
Copy link
Member

jef-n commented Jan 3, 2014

adapted in 1215d0b

@jef-n jef-n closed this Jan 3, 2014
@ahuarte47 ahuarte47 deleted the Issue_9280 branch January 3, 2014 21:59
@ahuarte47
Copy link
Contributor Author

Thanks @jef-n, although it works, sorry for not successful with my pull request

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

Successfully merging this pull request may close these issues.

None yet

2 participants