Skip to content
Permalink
Browse files

fix warnings and translation strings

  • Loading branch information
jef-n committed Nov 12, 2017
1 parent 68da18c commit 150a64e9ac1fb48544ab7e53e4fb52d5af5499c5
Showing with 2 additions and 7 deletions.
  1. +2 −2 python/plugins/processing/algs/grass7/Grass7Utils.py
  2. +0 −5 src/app/qgsattributesformproperties.cpp
@@ -472,14 +472,14 @@ def checkGrassIsInstalled(ignorePreviousState=False):
'it before running GRASS GIS 7 algorithms.')
if Grass7Utils.command is None:
return Grass7Utils.tr(
'GRASS GIS 7 binary {0} can\t be found on this system from a shell.'
'GRASS GIS 7 binary {0} can\'t be found on this system from a shell. '
'Please install it or configure your PATH {1} environment variable.'.format(
'(grass.bat)' if isWindows() else '(grass.sh)',
'or OSGEO4W_ROOT' if isWindows() else ''))
# GNU/Linux
else:
return Grass7Utils.tr(
'GRASS 7 can\'t be found on this system from a shell.'
'GRASS 7 can\'t be found on this system from a shell. '
'Please install it or configure your PATH environment variable.')

@staticmethod
@@ -451,11 +451,6 @@ QTreeWidgetItem *QgsAttributesFormProperties::loadAttributeEditorTreeItem( QgsAt

void QgsAttributesFormProperties::onAttributeSelectionChanged()
{
bool isAddPossible = false;
if ( mFormLayoutTree->selectedItems().count() == 1 && !mAvailableWidgetsTree->selectedItems().isEmpty() )
if ( mFormLayoutTree->selectedItems()[0]->data( 0, DnDTreeRole ).value<DnDTreeItemData>().type() == DnDTreeItemData::Container )
isAddPossible = true;

storeAttributeTypeDialog();
storeAttributeRelationEdit();

0 comments on commit 150a64e

Please sign in to comment.
You can’t perform that action at this time.