mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-01-23 13:42:55 +08:00
Disabled the color dialog when working on analog mode
This commit is contained in:
parent
a9b095ad5e
commit
765ee7723b
@ -392,6 +392,11 @@ void Header::changeName(QMouseEvent *event)
|
||||
|
||||
void Header::changeColor(QMouseEvent *event)
|
||||
{
|
||||
if (_view.session().is_working() && _view.session().get_device()->get_work_mode() == ANALOG){
|
||||
//Disable to select color when working on analog mode.
|
||||
return;
|
||||
}
|
||||
|
||||
if ((event->button() == Qt::LeftButton)) {
|
||||
const QColor new_color = QColorDialog::getColor(_context_trace->get_colour(), this, L_S(STR_PAGE_DLG, S_ID(IDS_DLG_SET_CHANNEL_COLOUR), "Set Channel Colour"));
|
||||
if (new_color.isValid())
|
||||
|
Loading…
x
Reference in New Issue
Block a user