[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [marble] src/plugins/render/positionmarker: Don't show a message box, shell warning is enough.
From:       Dennis_Nienhüser <earthwings () gentoo ! org>
Date:       2012-12-31 16:20:05
Message-ID: 20121231162005.B1653A6091 () git ! kde ! org
[Download RAW message or body]

Git commit d4f90e97a0044035da2355c8878326a9aafb756c by Dennis Nienhüser.
Committed on 31/12/2012 at 17:00.
Pushed by nienhueser into branch 'master'.

Don't show a message box, shell warning is enough.

M  +2    -3    src/plugins/render/positionmarker/PositionMarker.cpp

http://commits.kde.org/marble/d4f90e97a0044035da2355c8878326a9aafb756c

diff --git a/src/plugins/render/positionmarker/PositionMarker.cpp \
b/src/plugins/render/positionmarker/PositionMarker.cpp index e18c047..9fee4d0 100644
--- a/src/plugins/render/positionmarker/PositionMarker.cpp
+++ b/src/plugins/render/positionmarker/PositionMarker.cpp
@@ -17,7 +17,6 @@
 #include <QtCore/QRect>
 #include <QtCore/qmath.h>
 #include <QtGui/QFileDialog>
-#include <QtGui/QMessageBox>
 #include <QtGui/QPushButton>
 #include <QtGui/QColorDialog>
 #include <QtGui/QTransform>
@@ -410,8 +409,8 @@ void PositionMarker::loadCustomCursor( const QString& filename, \
bool useCursor )  }
     else
     {
-        QMessageBox::warning( NULL, tr( "Position Marker Plugin" ), tr( "Unable to \
                load custom cursor, default cursor will be used. "
-                                                       "Make sure this is a valid \
image file." ), QMessageBox::Ok ); +        mDebug() << "Unable to load custom cursor \
from " << filename << ". " +                 << "The default cursor will be used \
instead";  if ( m_configDialog )
             ui_configWidget->m_fileChooserButton->setIcon( QIcon( m_defaultCursor ) \
);  m_customCursor = m_defaultCursor;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic