Package: qgis / 2.4.0-1

0001-Followup-b53cab2-Edit-dialog-is-not-an-add-dialog.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From 4dce5ec092c5ecf481327cde034ab1b20b3832b9 Mon Sep 17 00:00:00 2001
From: Matthias Kuhn <matthias.kuhn@gmx.ch>
Date: Thu, 24 Jul 2014 11:40:26 +0200
Subject: =?UTF-8?q?Followup=20b53cab2,=20Edit=20dialog=20is=20not=20an=20add?=
 =?UTF-8?q?=20dialog=0AFix=20#11036?=
Origin: https://github.com/qgis/QGIS/commit/4dce5ec092c5ecf481327cde034ab1b20b3832b9
Bug: http://hub.qgis.org/issues/11036


--- a/src/app/qgsfeatureaction.cpp
+++ b/src/app/qgsfeatureaction.cpp
@@ -118,7 +118,8 @@ bool QgsFeatureAction::editFeature()
   else
   {
     QgsAttributes src = mFeature.attributes();
-    dialog->setIsAddDialog( true );
+    if ( !mFeature.isValid() )
+      dialog->setIsAddDialog( true );
 
     if ( dialog->exec() )
     {