45506 Commits

Author SHA1 Message Date
Blottiere Paul
414737d46f Fix typo in doc 2018-01-29 07:17:33 +00:00
Blottiere Paul
aed6608095 Add test 2018-01-29 07:17:33 +00:00
Blottiere Paul
c1fac42518 Update all attributes in a single transaction
Fixes #17869
2018-01-29 07:17:32 +00:00
Salvatore Larosa
77163ba0ec [processing] fix toggle advanced mode button in batch panel (#6193) 2018-01-29 08:12:30 +01:00
Nyall Dawson
a05d941e4e [processing] Default to allowing background execution of algorithms
Since the underlying issues with the Python bindings are now fixed,
in most cases we can safely default to allowing an algorithm to
run in a background thread!!

So now we make this the default, and require individual algorithms
which are NOT thread safe to declare this. This includes algorithms
which directly manipulate the current project or layers (such as
setting layer styles), alter the selections in layers, or which
rely on 3rd party libraries (for now, SAGA and GRASS algorithms
are marked as not thread safe... TODO - someone more familiar with
these libraries can investigate and remove the flag if appropriate).

Also models are marked as non-thread safe. TODO: only flag an
individual model as thread-unsafe if any of its child algorithms
report this flag.
2018-01-29 17:37:05 +11:00
Nyall Dawson
070e137c3d Update config format in search widget test 2018-01-29 17:36:37 +11:00
Nyall Dawson
234bc1a472 Fix value map widget broken when used as search widget
Fixes #17986
2018-01-29 17:36:37 +11:00
Salvatore Larosa
006ac70dee fix build on macos 2018-01-29 07:36:05 +01:00
Alexander Bruy
10fbe5c30a
Merge pull request #6200 from nyalldawson/non_file_default
[processing] Default to supporting non-file based outputs for providers
2018-01-29 08:35:21 +02:00
Nyall Dawson
5ab5d095e4 Attempt to fix #17783, window not activated on OSX after font dialog
displayed
2018-01-29 16:36:15 +11:00
Nyall Dawson
8db10ef71c Attempt to fix #17784, shortcuts in layouts are applied
in child widgets on OSX
2018-01-29 16:35:47 +11:00
Nyall Dawson
0f963dfadf [processing] Default to supporting non-file based outputs for providers
And make this support opt-out, since the vast majority of providers
are based on QGIS API and don't have external dependencies which would
restrict use of memory layers/etc.

Plus, I'd rather see non-compliant providers expose this support when
they can't use non-file-based-outputs (and make this the bug which
needs fixing) then have to rely on plugin providers to discover and
explicitly expose this support.
2018-01-29 13:14:06 +10:00
Webmaster
9a020ea792 fix saving interface customization to .ini (fixes #17979) 2018-01-29 08:47:28 +07:00
Nyall Dawson
fb8f3e9e4a [layouts] Fix restoration of rotated item positions
Fixes #17982
2018-01-29 12:25:53 +11:00
Nathan Woodrow
0be37ad465 [Win] Show error message if mainwin fails to load exe
Currently it will just die quietly which is no good for the user.
2018-01-29 11:15:15 +10:00
Nyall Dawson
cc9f7af0bf [layouts] Don't force open item properties when undoing/redoing 2018-01-29 11:12:33 +10:00
Harrissou Sant-anna
4440c09ed1 Running check_spelling.sh 2018-01-29 12:00:52 +11:00
Harrissou Sant-anna
76e778d04d Fix typo (fix #17946) 2018-01-29 12:00:52 +11:00
Nyall Dawson
6f364fdba5 [layouts] Use correct transform context for map grids
Fixes #17984
2018-01-29 10:57:02 +11:00
Nyall Dawson
f9a8161733 Fix some leaks and errors in sip conversions 2018-01-29 08:47:25 +11:00
Salvatore Larosa
ebb725ec04 [processing] create widget correctly from wrapper when in batch mode 2018-01-28 22:11:51 +01:00
Salvatore Larosa
550c74e106 [processing] fix wrong getter 2018-01-28 21:31:18 +01:00
Salvatore Larosa
3ca5d72455 apply enableAutoGeometryRestore to config shortcut dialog 2018-01-28 16:43:59 +01:00
Nyall Dawson
bcbc46b56b Fix possible GIL deadlock when iterating features in python
and an exception is thrown
2018-01-28 22:34:16 +11:00
Nyall Dawson
285bb0631b [processing] Fix duplicate parameter
And throw warnings when other duplicate parameters are registered.

GRASS has a lot.
2018-01-28 19:09:12 +11:00
Juergen E. Fischer
7e20fe4cdc make converting to multi geometries to fullfil provider geometry
constraints the last step and use earlier conversions (fixes #17643)
2018-01-28 00:51:25 +01:00
Salvatore Larosa
72ca8d7b9c
Merge pull request #6164 from slarosa/fix_ml_issue
update min/max values for singlebandgray raster renderer
2018-01-27 22:41:32 +01:00
Denis Rouzaud
54cd01ac7d use blue font for highlighted tree items 2018-01-26 16:15:47 -09:00
Denis Rouzaud
6be8249bec [options search] fix search not available in option tree 2018-01-26 16:15:47 -09:00
Nyall Dawson
71bdda5f83
Merge pull request #6176 from nyalldawson/gil
[python] Always release the GIL before calling PyQGIS c++ methods
2018-01-27 08:24:17 +11:00
Juergen E. Fischer
a265073344 update package*.cmd for 3 and GRASS 7.x 2018-01-26 20:29:35 +01:00
Juergen E. Fischer
7b959175e2 fix typo 2018-01-26 20:29:35 +01:00
Alexander Bruy
891ca3cd11 [processing] fix wrong variable name 2018-01-26 19:35:40 +02:00
nirvn
fd5388074b avoid startup warning, do not look for empty setting value 2018-01-26 16:33:43 +07:00
Alessandro Pasotti
bd6a1fa203
Merge pull request #6181 from elpaso/check-for-size-before-adding-to-model
Check for model items size before removing rows
2018-01-26 10:04:22 +01:00
Alessandro Pasotti
d4e8f63315 Check for model items size before removing rows
This was hitting an assert in Qt core libraries 5.9.3
2018-01-26 09:35:18 +01:00
nirvn
ac4be1b30f update the brasil flag svg to get rid of console warnings 2018-01-26 15:21:43 +07:00
Alessandro Pasotti
2997c3b4da
Merge pull request #6173 from elpaso/bugfix-17863-wrong-ogr-extent
[bugfix][ogr][spatialite] Update extent when subsetstring is set in the ctor
2018-01-26 09:15:08 +01:00
nirvn
b1a97e1736 fix stylesheet string for the qgsdatetimeedit widget 2018-01-26 14:38:30 +07:00
nirvn
fb3e4e1670 remove png flags 2018-01-26 13:45:08 +07:00
nirvn
af17f041a9 add two missing locale flags 2018-01-26 13:45:08 +07:00
nirvn
6d5dce22f6 [processing] properly size toolbar button for provider actions 2018-01-26 13:11:24 +07:00
Nyall Dawson
b3256ad2c3 [python] Always release the GIL before calling PyQGIS c++ methods
Switches on the sip "-g" switch, which forces sip to release the
Python Global Interpreter Lock before calling a qgis c++ method,
and reacquire it after.

While this flag is not a default sip flag, it is used when building
the PyQt API, so can't forsee any issues from enabling it.

The benefit however is extreme for PyQGIS based scripts which
rely on threads, potentially resulting in massive performance
boosts.

Without this switch, calling an expensive c++ method (say,
building a QgsSpatialIndex using a QgsFeatureIterator) would lock
the Python GIL for the duration of the c++ call... which could
potentially take minutes or more. With the switch, the lock
is released before all calls, so other Python threads are free
to merrily grab the lock and do other processing while the
original thread chugs away in c++ land.

Benchtests of worst-case scenarios (single thread calling
thousands of very inexpensive PyQGIS methods (simple getters))
regressed from mean of 154 seconds to 158 with this flag. But
that's worst case (and as Intel have recently demonstrated...
we can't take yesterday's computing speed as the benchmark
for todays ;). Given that best case scenarious (multi-threaded
operations calling slow c++ methods) will benefit so greatly
from this change, I think it's an acceptable trade off.

*This is a step toward potentially re-enabling background
execution of python based Processing algorithms, and also
should greatly improve QGIS responsiveness when using
python based renderers/symbols.
2018-01-26 14:55:31 +10:00
Salvatore Larosa
f4f89bbcbe [processing] resurrects matrix parameter 2018-01-25 21:54:22 +01:00
Werner Macho
dc564fb2d0
Merge pull request #6175 from zsiki/master
Hungarian translators list extended
2018-01-25 19:33:04 +01:00
Zoltan Siki
e77658fc2e
Hungarian translators list extended 2018-01-25 19:27:11 +01:00
Alessandro Pasotti
698befa9dd [gpkg] Add test for gpkg subsetstring don't unlock mutex twice
I wanted to add the test for gpkg subsetstring even if
it was not bugged, while testing that, I hit an assert
in Qt core that pointed me to double unlocked locks.
2018-01-25 15:16:53 +01:00
Alessandro Pasotti
cd0559dfde [bugfix][spatialite] Update extent when subsetstring is set in the ctor
Fixes #17863 - Zoom to layer has inconsistent behavior with filter
2018-01-25 14:38:34 +01:00
Alessandro Pasotti
e9c9b5dfb6 [bugfix][ogr] Update extent when subsetstring is set in the ctor
Fixes #17863 - Zoom to layer has inconsistent behavior with filter
2018-01-25 14:38:17 +01:00
Sandro Mani
8b682dad1a
Merge pull request #6172 from manisandro/master
[Globe] Adapt for API changes
2018-01-25 14:21:02 +01:00