mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
fix warnings and translation strings
This commit is contained in:
parent
68da18c0b6
commit
150a64e9ac
@ -472,14 +472,14 @@ class Grass7Utils(object):
|
||||
'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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user