Skip to content

Commit 9326db5

Browse files
author
jef
committed
fix #2849
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13851 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent af90319 commit 9326db5

9 files changed

+42
-39
lines changed

i18n/qgis_de.ts

+23-23
Original file line numberDiff line numberDiff line change
@@ -12073,8 +12073,8 @@ p, li { white-space: pre-wrap; }
1207312073
</message>
1207412074
<message>
1207512075
<location filename="../src/app/gps/qgsgpsinformationwidget.cpp" line="600"/>
12076-
<source>Cannot edit the vector layer. To make it editable, go to the file item of the layer, right click and check &apos;Allow Editing&apos;.</source>
12077-
<translation>Der Vektorlayer kann nicht geändert werden. Um ihn zu bearbeiten, bitte erst mit der rechten Maustaste auf den Dateieintrag des Layers klicken und dann auf &apos;Bearbeitungsstatus umschalten&apos;.</translation>
12076+
<source>Cannot edit the vector layer. Use &apos;Toggle Editing&apos; to make it editable.</source>
12077+
<translation>Der Vektorlayer kann nicht geändert werden. Benutzen Sie bitte &apos;Bearbeitungsstatus umschalten&apos;, um ihn zu ändern.</translation>
1207812078
</message>
1207912079
<message>
1208012080
<location filename="../src/app/gps/qgsgpsinformationwidget.cpp" line="609"/>
@@ -17290,14 +17290,14 @@ Die könnte auf ein Netzwerkproblem oder ein Problem des WMS-Server hindeuten.</
1729017290
<context>
1729117291
<name>QgsMapCanvas</name>
1729217292
<message>
17293-
<location filename="../src/gui/qgsmapcanvas.cpp" line="1384"/>
17293+
<location filename="../src/gui/qgsmapcanvas.cpp" line="1387"/>
1729417294
<source>Could not draw %1 because:
1729517295
%2</source>
1729617296
<translation>Konnte %1 nicht zeichnen, weil:
1729717297
%2</translation>
1729817298
</message>
1729917299
<message>
17300-
<location filename="../src/gui/qgsmapcanvas.cpp" line="1378"/>
17300+
<location filename="../src/gui/qgsmapcanvas.cpp" line="1381"/>
1730117301
<source>Could not draw %1 because:
1730217302
%2</source>
1730317303
<comment>COMMENTED OUT</comment>
@@ -17448,8 +17448,8 @@ Die könnte auf ein Netzwerkproblem oder ein Problem des WMS-Server hindeuten.</
1744817448
</message>
1744917449
<message>
1745017450
<location filename="../src/app/qgsmaptooladdfeature.cpp" line="73"/>
17451-
<source>Cannot edit the vector layer. To make it editable, go to the file item of the layer, right click and check &apos;Allow Editing&apos;.</source>
17452-
<translation>Der Vektorlayer kann nicht geändert werden. Um ihn zu bearbeiten, klicken Sie bitte erst mit der rechten Maustaste auf den Dateieintrag des Layers und dann auf &apos;Bearbeitungsstatus umschalten&apos;.</translation>
17451+
<source>Cannot edit the vector layer. Use &apos;Toggle Editing&apos; to make it editable.</source>
17452+
<translation>Der Vektorlayer kann nicht geändert werden. Benutzen Sie bitte &apos;Bearbeitungsstatus umschalten&apos;, um ihn zu ändern.</translation>
1745317453
</message>
1745417454
<message>
1745517455
<location filename="../src/app/qgsmaptooladdfeature.cpp" line="84"/>
@@ -17536,8 +17536,8 @@ Die könnte auf ein Netzwerkproblem oder ein Problem des WMS-Server hindeuten.</
1753617536
</message>
1753717537
<message>
1753817538
<location filename="../src/app/qgsmaptooladdisland.cpp" line="53"/>
17539-
<source>Cannot edit the vector layer. To make it editable, go to the file item of the layer, right click and check &apos;Allow Editing&apos;.</source>
17540-
<translation>Der Vektorlayer kann nicht geändert werden. Um ihn zu bearbeiten, klicken Sie bitte erst mit der rechten Maustaste auf den Dateieintrag des Layers und dann auf &apos;Bearbeitungsstatus umschalten&apos;.</translation>
17539+
<source>Cannot edit the vector layer. Use &apos;Toggle Editing&apos; to make it editable.</source>
17540+
<translation>Der Vektorlayer kann nicht geändert werden. Benutzen Sie bitte &apos;Bearbeitungsstatus umschalten&apos;, um ihn zu ändern.</translation>
1754117541
</message>
1754217542
<message>
1754317543
<location filename="../src/app/qgsmaptooladdisland.cpp" line="63"/>
@@ -17612,8 +17612,8 @@ Die könnte auf ein Netzwerkproblem oder ein Problem des WMS-Server hindeuten.</
1761217612
</message>
1761317613
<message>
1761417614
<location filename="../src/app/qgsmaptooladdring.cpp" line="51"/>
17615-
<source>Cannot edit the vector layer. To make it editable, go to the file item of the layer, right click and check &apos;Allow Editing&apos;.</source>
17616-
<translation>Der Vektorlayer kann nicht geändert werden. Um ihn zu bearbeiten, klicken Sie bitte erst mit der rechten Maustaste auf den Dateieintrag des Layers und dann auf &apos;Bearbeitungsstatus umschalten&apos;.</translation>
17615+
<source>Cannot edit the vector layer. Use &apos;Toggle Editing&apos; to make it editable.</source>
17616+
<translation>Der Vektorlayer kann nicht geändert werden. Benutzen Sie bitte &apos;Bearbeitungsstatus umschalten&apos;, um ihn zu ändern.</translation>
1761717617
</message>
1761817618
<message>
1761917619
<location filename="../src/app/qgsmaptooladdring.cpp" line="66"/>
@@ -17814,8 +17814,8 @@ Die könnte auf ein Netzwerkproblem oder ein Problem des WMS-Server hindeuten.</
1781417814
</message>
1781517815
<message>
1781617816
<location filename="../src/app/qgsmaptoolmovefeature.cpp" line="66"/>
17817-
<source>Cannot edit the vector layer. To make it editable, go to the file item of the layer, right click and check &apos;Allow Editing&apos;.</source>
17818-
<translation>Der Vektorlayer kann nicht geändert werden. Um ihn zu bearbeiten, klicken Sie bitte erst mit der rechten Maustaste auf den Dateieintrag des Layers und dann auf &apos;Bearbeitungsstatus umschalten&apos;.</translation>
17817+
<source>Cannot edit the vector layer. Use &apos;Toggle Editing&apos; to make it editable.</source>
17818+
<translation>Der Vektorlayer kann nicht geändert werden. Benutzen Sie bitte &apos;Bearbeitungsstatus umschalten&apos;, um ihn zu ändern.</translation>
1781917819
</message>
1782017820
<message>
1782117821
<location filename="../src/app/qgsmaptoolmovefeature.cpp" line="157"/>
@@ -17870,8 +17870,8 @@ Die könnte auf ein Netzwerkproblem oder ein Problem des WMS-Server hindeuten.</
1787017870
</message>
1787117871
<message>
1787217872
<location filename="../src/app/qgsmaptoolreshape.cpp" line="50"/>
17873-
<source>Cannot edit the vector layer. To make it editable, go to the file item of the layer, right click and check &apos;Allow Editing&apos;.</source>
17874-
<translation>Der Vektorlayer kann nicht geändert werden. Um ihn zu bearbeiten, klicken Sie bitte erst mit der rechten Maustaste auf den Dateieintrag des Layers und dann auf &apos;Bearbeitungsstatus umschalten&apos;.</translation>
17873+
<source>Cannot edit the vector layer. Use &apos;Toggle Editing&apos; to make it editable.</source>
17874+
<translation>Der Vektorlayer kann nicht geändert werden. Benutzen Sie bitte &apos;Bearbeitungsstatus umschalten&apos;, um ihn zu ändern.</translation>
1787517875
</message>
1787617876
<message>
1787717877
<location filename="../src/app/qgsmaptoolreshape.cpp" line="65"/>
@@ -17981,6 +17981,11 @@ Die könnte auf ein Netzwerkproblem oder ein Problem des WMS-Server hindeuten.</
1798117981
<source>No feature split done</source>
1798217982
<translation>Keine Objekttrennung vorgenommen</translation>
1798317983
</message>
17984+
<message>
17985+
<location filename="../src/app/qgsmaptoolsplitfeatures.cpp" line="50"/>
17986+
<source>Cannot edit the vector layer. Use &apos;Toggle Editing&apos; to make it editable.</source>
17987+
<translation type="unfinished">dDer Vektorlayer kann nicht geändert werden. Benutzen Sie bitte &apos;Bearbeitungsstatus umschalten&apos;, um ihn zu ändern.</translation>
17988+
</message>
1798417989
<message>
1798517990
<location filename="../src/app/qgsmaptoolsplitfeatures.cpp" line="78"/>
1798617991
<source>Features split</source>
@@ -18006,11 +18011,6 @@ Die könnte auf ein Netzwerkproblem oder ein Problem des WMS-Server hindeuten.</
1800618011
<source>Layer not editable</source>
1800718012
<translation>Der Layer kann nicht bearbeitet werden</translation>
1800818013
</message>
18009-
<message>
18010-
<location filename="../src/app/qgsmaptoolsplitfeatures.cpp" line="50"/>
18011-
<source>Cannot edit the vector layer. To make it editable, go to the file item of the layer, right click and check &apos;Allow Editing&apos;.</source>
18012-
<translation>Der Vektorlayer kann nicht geändert werden. Um ihn zu bearbeiten, klicken Sie bitte erst mit der rechten Maustaste auf den Dateieintrag des Layers und dann auf &apos;Bearbeitungsstatus umschalten&apos;.</translation>
18013-
</message>
1801418014
<message>
1801518015
<location filename="../src/app/qgsmaptoolsplitfeatures.cpp" line="65"/>
1801618016
<source>Coordinate transform error</source>
@@ -28428,17 +28428,17 @@ URL %1 versucht</translation>
2842828428
<translation>Fehler</translation>
2842928429
</message>
2843028430
<message>
28431-
<location filename="../src/providers/wms/qgswmsprovider.cpp" line="2683"/>
28431+
<location filename="../src/providers/wms/qgswmsprovider.cpp" line="2682"/>
2843228432
<source>Layer cannot be queried in plain text.</source>
2843328433
<translation>Layer kann in Klartext abgefragt werden.</translation>
2843428434
</message>
2843528435
<message>
28436-
<location filename="../src/providers/wms/qgswmsprovider.cpp" line="2689"/>
28436+
<location filename="../src/providers/wms/qgswmsprovider.cpp" line="2688"/>
2843728437
<source>Layer cannot be queried.</source>
2843828438
<translation>Layer kann nicht abgefragt werden.</translation>
2843928439
</message>
2844028440
<message>
28441-
<location filename="../src/providers/wms/qgswmsprovider.cpp" line="2733"/>
28441+
<location filename="../src/providers/wms/qgswmsprovider.cpp" line="2732"/>
2844228442
<source>identify request redirected.</source>
2844328443
<translation>Identify-Anfrage umgeleitet.</translation>
2844428444
</message>
@@ -28494,7 +28494,7 @@ URL %1 versucht</translation>
2849428494
</message>
2849528495
<message>
2849628496
<location filename="../src/providers/wms/qgswmsprovider.cpp" line="811"/>
28497-
<location filename="../src/providers/wms/qgswmsprovider.cpp" line="2748"/>
28497+
<location filename="../src/providers/wms/qgswmsprovider.cpp" line="2747"/>
2849828498
<source>map request error %1: %2</source>
2849928499
<translation>Kartenanfragefehler %1: %2</translation>
2850028500
</message>

src/app/gps/qgsgpsinformationwidget.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ void QgsGPSInformationWidget::displayGPSInformation( const QgsGPSInformation& in
421421

422422
//after loosing connection, the first gps info sometimes has uninitialized coords
423423
QgsPoint myNewCenter;
424-
if( doubleNear( info.longitude, 0.0 ) && doubleNear( info.latitude, 0.0) )
424+
if ( doubleNear( info.longitude, 0.0 ) && doubleNear( info.latitude, 0.0 ) )
425425
{
426426
myNewCenter = mLastGpsPosition;
427427
}
@@ -597,8 +597,8 @@ void QgsGPSInformationWidget::on_mBtnCloseFeature_clicked( )
597597
if ( !vlayer->isEditable() )
598598
{
599599
QMessageBox::information( 0, tr( "Layer not editable" ),
600-
tr( "Cannot edit the vector layer. To make it editable, go to the file item "
601-
"of the layer, right click and check 'Allow Editing'." ) );
600+
tr( "Cannot edit the vector layer. Use 'Toggle Editing' to make it editable." )
601+
);
602602
connectGpsSlot();
603603
return;
604604
}

src/app/qgsmaptooladdfeature.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ void QgsMapToolAddFeature::canvasReleaseEvent( QMouseEvent * e )
7070
if ( !vlayer->isEditable() )
7171
{
7272
QMessageBox::information( 0, tr( "Layer not editable" ),
73-
tr( "Cannot edit the vector layer. To make it editable, go to the file item "
74-
"of the layer, right click and check 'Allow Editing'." ) );
73+
tr( "Cannot edit the vector layer. Use 'Toggle Editing' to make it editable." )
74+
);
7575
return;
7676
}
7777

src/app/qgsmaptooladdisland.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ void QgsMapToolAddIsland::canvasReleaseEvent( QMouseEvent * e )
5050
{
5151
QMessageBox::information( 0,
5252
tr( "Layer not editable" ),
53-
tr( "Cannot edit the vector layer. To make it editable, go to the file item "
54-
"of the layer, right click and check 'Allow Editing'." ) );
53+
tr( "Cannot edit the vector layer. Use 'Toggle Editing' to make it editable." )
54+
);
5555
return;
5656
}
5757

src/app/qgsmaptooladdring.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ void QgsMapToolAddRing::canvasReleaseEvent( QMouseEvent * e )
4848
if ( !vlayer->isEditable() )
4949
{
5050
QMessageBox::information( 0, tr( "Layer not editable" ),
51-
tr( "Cannot edit the vector layer. To make it editable, go to the file item "
52-
"of the layer, right click and check 'Allow Editing'." ) );
51+
tr( "Cannot edit the vector layer. Use 'Toggle Editing' to make it editable." )
52+
);
5353
return;
5454
}
5555

src/app/qgsmaptoolmovefeature.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ void QgsMapToolMoveFeature::canvasPressEvent( QMouseEvent * e )
6363
if ( !vlayer->isEditable() )
6464
{
6565
QMessageBox::information( 0, tr( "Layer not editable" ),
66-
tr( "Cannot edit the vector layer. To make it editable, go to the file item "
67-
"of the layer, right click and check 'Allow Editing'." ) );
66+
tr( "Cannot edit the vector layer. Use 'Toggle Editing' to make it editable." )
67+
);
6868
return;
6969
}
7070

src/app/qgsmaptoolreshape.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ void QgsMapToolReshape::canvasReleaseEvent( QMouseEvent * e )
4747
if ( !vlayer->isEditable() )
4848
{
4949
QMessageBox::information( 0, tr( "Layer not editable" ),
50-
tr( "Cannot edit the vector layer. To make it editable, go to the file item "
51-
"of the layer, right click and check 'Allow Editing'." ) );
50+
tr( "Cannot edit the vector layer. Use 'Toggle Editing' to make it editable." )
51+
);
5252
return;
5353
}
5454

src/app/qgsmaptoolsplitfeatures.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ void QgsMapToolSplitFeatures::canvasReleaseEvent( QMouseEvent * e )
4747
if ( !vlayer->isEditable() )
4848
{
4949
QMessageBox::information( 0, tr( "Layer not editable" ),
50-
tr( "Cannot edit the vector layer. To make it editable, go to the file item "
51-
"of the layer, right click and check 'Allow Editing'." ) );
50+
tr( "Cannot edit the vector layer. Use 'Toggle Editing' to make it editable." )
51+
);
5252
return;
5353
}
5454

src/gui/qgsmapcanvas.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -902,8 +902,11 @@ void QgsMapCanvas::mouseReleaseEvent( QMouseEvent * e )
902902
QgsDebugMsg( "Right click in map tool zoom or pan, last tool is " +
903903
QString( mLastNonZoomMapTool ? "not null." : "null." ) );
904904

905+
QgsVectorLayer *vlayer = qobject_cast<QgsVectorLayer *>( mCurrentLayer );
906+
905907
// change to older non-zoom tool
906-
if ( mLastNonZoomMapTool )
908+
if ( mLastNonZoomMapTool
909+
&& ( !mLastNonZoomMapTool->isEditTool() || ( vlayer && vlayer->isEditable() ) ) )
907910
{
908911
QgsMapTool* t = mLastNonZoomMapTool;
909912
mLastNonZoomMapTool = NULL;

0 commit comments

Comments
 (0)