@@ -1772,7 +1772,7 @@ void QgsComposer::exportCompositionAsPDF( QgsComposer::OutputMode mode )
1772
1772
if ( !printReady )
1773
1773
{
1774
1774
QMessageBox::warning ( this , tr ( " Atlas processing error" ),
1775
- QString ( tr ( " Error creating %1 ." ) ).arg ( outputFileName ),
1775
+ QString ( tr ( " Cannot write to %1. \n\n This file may be open in another application ." ) ).arg ( outputFileName ),
1776
1776
QMessageBox::Ok,
1777
1777
QMessageBox::Ok );
1778
1778
mView ->setPaintingEnabled ( true );
@@ -1818,7 +1818,7 @@ void QgsComposer::exportCompositionAsPDF( QgsComposer::OutputMode mode )
1818
1818
if ( !printReady )
1819
1819
{
1820
1820
QMessageBox::warning ( this , tr ( " Atlas processing error" ),
1821
- QString ( tr ( " Error creating %1 ." ) ).arg ( outputFileName ),
1821
+ QString ( tr ( " Cannot write to %1. \n\n This file may be open in another application ." ) ).arg ( outputFileName ),
1822
1822
QMessageBox::Ok,
1823
1823
QMessageBox::Ok );
1824
1824
mView ->setPaintingEnabled ( true );
@@ -1849,7 +1849,7 @@ void QgsComposer::exportCompositionAsPDF( QgsComposer::OutputMode mode )
1849
1849
if ( !exportOk )
1850
1850
{
1851
1851
QMessageBox::warning ( this , tr ( " Atlas processing error" ),
1852
- QString ( tr ( " Error creating %1 ." ) ).arg ( outputFileName ),
1852
+ QString ( tr ( " Cannot write to %1. \n\n This file may be open in another application ." ) ).arg ( outputFileName ),
1853
1853
QMessageBox::Ok,
1854
1854
QMessageBox::Ok );
1855
1855
mView ->setPaintingEnabled ( true );
@@ -2165,7 +2165,7 @@ void QgsComposer::exportCompositionAsImage( QgsComposer::OutputMode mode )
2165
2165
if ( !saveOk )
2166
2166
{
2167
2167
QMessageBox::warning ( this , tr ( " Image export error" ),
2168
- QString ( tr ( " Error creating %1 ." ) ).arg ( fileNExt.first ),
2168
+ QString ( tr ( " Cannot write to %1. \n\n This file may be open in another application ." ) ).arg ( fileNExt.first ),
2169
2169
QMessageBox::Ok,
2170
2170
QMessageBox::Ok );
2171
2171
mView ->setPaintingEnabled ( true );
@@ -2390,7 +2390,7 @@ void QgsComposer::exportCompositionAsImage( QgsComposer::OutputMode mode )
2390
2390
if ( !saveOk )
2391
2391
{
2392
2392
QMessageBox::warning ( this , tr ( " Atlas processing error" ),
2393
- QString ( tr ( " Error creating %1 ." ) ).arg ( imageFilename ),
2393
+ QString ( tr ( " Cannot write to %1. \n\n This file may be open in another application ." ) ).arg ( imageFilename ),
2394
2394
QMessageBox::Ok,
2395
2395
QMessageBox::Ok );
2396
2396
mView ->setPaintingEnabled ( true );
@@ -2740,7 +2740,7 @@ void QgsComposer::exportCompositionAsSVG( QgsComposer::OutputMode mode )
2740
2740
if ( !createOk )
2741
2741
{
2742
2742
QMessageBox::warning ( this , tr ( " SVG export error" ),
2743
- QString ( tr ( " Error creating %1 ." ) ).arg ( currentFileName ),
2743
+ QString ( tr ( " Cannot write to %1. \n\n This file may be open in another application ." ) ).arg ( currentFileName ),
2744
2744
QMessageBox::Ok,
2745
2745
QMessageBox::Ok );
2746
2746
mView ->setPaintingEnabled ( true );
@@ -2898,7 +2898,7 @@ void QgsComposer::exportCompositionAsSVG( QgsComposer::OutputMode mode )
2898
2898
if ( !openOk )
2899
2899
{
2900
2900
QMessageBox::warning ( this , tr ( " SVG export error" ),
2901
- QString ( tr ( " Error creating %1 ." ) ).arg ( currentFileName ),
2901
+ QString ( tr ( " Cannot write to %1. \n\n This file may be open in another application ." ) ).arg ( currentFileName ),
2902
2902
QMessageBox::Ok,
2903
2903
QMessageBox::Ok );
2904
2904
mView ->setPaintingEnabled ( true );
0 commit comments