File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 18
18
19
19
#include " qgsabout.h"
20
20
#include " qgsapplication.h"
21
- #ifdef Q_OS_MACX
21
+ #ifdef Q_WS_MAC
22
22
#include < ApplicationServices/ApplicationServices.h>
23
23
#else
24
24
#include < QInputDialog>
@@ -60,6 +60,9 @@ void QgsAbout::init()
60
60
#endif
61
61
if ( file.open ( QIODevice::ReadOnly ) ) {
62
62
QTextStream stream ( &file );
63
+ #ifdef Q_OS_DARWIN
64
+ stream.setCodec (" UTF-8" );
65
+ #endif
63
66
QString line;
64
67
#ifdef QGISDEBUG
65
68
int i = 1 ;
@@ -219,7 +222,7 @@ void QgsAbout::on_btnQgisHome_clicked()
219
222
220
223
void QgsAbout::openUrl (QString url)
221
224
{
222
- #ifdef Q_OS_MACX
225
+ #ifdef Q_WS_MAC
223
226
/* Use Mac OS X Launch Services which uses the user's default browser
224
227
* and will just open a new window if that browser is already running.
225
228
* QProcess creates a new browser process for each invocation and expects a
You can’t perform that action at this time.
0 commit comments