File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -265,12 +265,10 @@ QByteArray QgsSvgCache::getImageData( const QString &path ) const
265
265
266
266
// wait until the image download finished
267
267
// TODO: connect to the reply->finished() signal
268
- QApplication::setOverrideCursor ( QCursor ( Qt::WaitCursor ) );
269
268
while ( !reply->isFinished () )
270
269
{
271
270
QCoreApplication::processEvents ( QEventLoop::ExcludeUserInputEvents, 500 );
272
271
}
273
- QApplication::restoreOverrideCursor ();
274
272
275
273
if ( reply->error () != QNetworkReply::NoError )
276
274
{
Original file line number Diff line number Diff line change 33
33
34
34
#include < QAbstractButton>
35
35
#include < QColorDialog>
36
+ #include < QCursor>
36
37
#include < QDir>
37
38
#include < QFileDialog>
38
39
#include < QPainter>
@@ -801,7 +802,11 @@ void QgsSvgMarkerSymbolLayerV2Widget::on_mFileLineEdit_editingFinished()
801
802
return ;
802
803
}
803
804
}
805
+
806
+ QApplication::setOverrideCursor ( QCursor ( Qt::WaitCursor ) );
804
807
mLayer ->setPath ( mFileLineEdit ->text () );
808
+ QApplication::restoreOverrideCursor ();
809
+
805
810
setGuiForSvg ( mLayer );
806
811
emit changed ();
807
812
}
@@ -994,7 +999,11 @@ void QgsSVGFillSymbolLayerWidget::on_mSVGLineEdit_editingFinished()
994
999
return ;
995
1000
}
996
1001
}
1002
+
1003
+ QApplication::setOverrideCursor ( QCursor ( Qt::WaitCursor ) );
997
1004
mLayer ->setSvgFilePath ( mSVGLineEdit ->text () );
1005
+ QApplication::restoreOverrideCursor ();
1006
+
998
1007
updateParamGui ();
999
1008
emit changed ();
1000
1009
}
You can’t perform that action at this time.
0 commit comments