mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Prevent duplicated tabs in message log panel
by removing & when looping through existing tab names
This commit is contained in:
parent
22d4d22b93
commit
a7f132bc87
@ -28,7 +28,7 @@
|
||||
#include <QToolTip>
|
||||
#include <QPlainTextEdit>
|
||||
#include <QScrollBar>
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
QgsMessageLogViewer::QgsMessageLogViewer( QWidget *parent, Qt::WindowFlags fl )
|
||||
: QDialog( parent, fl )
|
||||
@ -57,8 +57,7 @@ void QgsMessageLogViewer::logMessage( const QString &message, const QString &tag
|
||||
cleanedTag = tr( "General" );
|
||||
|
||||
int i;
|
||||
for ( i = 0; i < tabWidget->count() && tabWidget->tabText( i ) != cleanedTag; i++ )
|
||||
;
|
||||
for ( i = 0; i < tabWidget->count() && tabWidget->tabText( i ).remove( QChar( '&' ) ) != cleanedTag; i++ );
|
||||
|
||||
QPlainTextEdit *w = nullptr;
|
||||
if ( i < tabWidget->count() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user