Bug report #1074

WMS connection dialog does not see selection

Added by Marco Hugentobler over 12 years ago. Updated over 12 years ago.

Status:Closed
Priority:Low
Assignee:Tom Elwertowski
Category:Build/Install
Affected QGIS version: Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:11134

Description

If a layer is selected in the WMS connection dialog and the 'Add' button is pressed, there is an error message which tells that at least one layer needs to be selected. It works with two layers selected.

Associated revisions

Revision 92c73287
Added by Tom Elwertowski over 12 years ago

Additional conversion from Q3ListView to QTreeWidget. This is an addition to r8406 and fixes #1074.
For Q3ListView, each item is already set to the new selection state when on_lstLayers_selectionChanged is called. For QTreeWidget, each item still has the old selection state and selectedItems() must be used to get the new selection state.

git-svn-id: http://svn.osgeo.org/qgis/trunk/[email protected] c8812cc2-4d05-0410-92ff-de0c093fc19c

Revision 03fbf87d
Added by Tom Elwertowski over 12 years ago

Additional conversion from Q3ListView to QTreeWidget. This is an addition to r8406 and fixes #1074.
For Q3ListView, each item is already set to the new selection state when on_lstLayers_selectionChanged is called. For QTreeWidget, each item still has the old selection state and selectedItems() must be used to get the new selection state.

git-svn-id: http://svn.osgeo.org/qgis/[email protected] c8812cc2-4d05-0410-92ff-de0c093fc19c

History

#1 Updated by Tom Elwertowski over 12 years ago

QgsServerSourceSelect::on_lstLayers_itemSelectionChanged() was not fully converted from Qt3 to Qt4 in 21708a56 (SVN r8407).

For Q3ListView, each item is already set to the new selection state when on_lstLayers_selectionChanged is called. For QTreeWidget, each item still has the old selection state and selectedItems() must be used to get the new selection state.

#2 Updated by Tom Elwertowski over 12 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

Fixed by 03fbf87d (SVN r8629).

Also available in: Atom PDF