Commit 40548028 authored by Kurt Hindenburg's avatar Kurt Hindenburg

Use static getColor instead of dialog->exec

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1107401
parent 84b7864f
......@@ -120,18 +120,18 @@ void ColorSchemeEditor::editColorItem( QTableWidgetItem* item )
if ( item->column() != 1 )
return;
KColorDialog* dialog = new KColorDialog(this);
dialog->setColor( item->background().color() );
dialog->exec();
item->setBackground( dialog->color() );
ColorEntry entry(_colors->colorEntry(item->row()));
entry.color = dialog->color();
_colors->setColorTableEntry(item->row(),entry);
QColor color = item->background().color();
int result = KColorDialog::getColor( color );
if ( result == KColorDialog::Accepted ) {
item->setBackground( color );
ColorEntry entry( _colors->colorEntry(item->row()) );
entry.color = color;
_colors->setColorTableEntry( item->row(), entry );
emit colorsChanged( _colors );
emit colorsChanged(_colors);
}
}
void ColorSchemeEditor::setDescription(const QString& text)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment