diff options
| author | Tim E. Real <termtech@rogers.com> | 2011-04-11 03:36:41 +0000 | 
|---|---|---|
| committer | Tim E. Real <termtech@rogers.com> | 2011-04-11 03:36:41 +0000 | 
| commit | c8a651f88b5728e246cb46599521ce981f0f4cfb (patch) | |
| tree | e01e632f600c68742dc21f9ab64ecc0503b20e73 /muse2/muse | |
| parent | c023bdc9ab1cdc422ab35ea8b984899ee2f4219d (diff) | |
Fix gui column.
Diffstat (limited to 'muse2/muse')
| -rw-r--r-- | muse2/muse/confmport.cpp | 18 | 
1 files changed, 13 insertions, 5 deletions
| diff --git a/muse2/muse/confmport.cpp b/muse2/muse/confmport.cpp index d05e174d..8c27d9eb 100644 --- a/muse2/muse/confmport.cpp +++ b/muse2/muse/confmport.cpp @@ -380,10 +380,16 @@ void MPConfig::rbClicked(QTableWidgetItem* item)              case DEVCOL_GUI:                    if (dev == 0)                          return; -                  if (port->hasGui()) +                  //if (port->hasGui()) +                  if (port->hasNativeGui())                    { -                        port->instrument()->showGui(!port->guiVisible()); -                        item->setIcon(port->guiVisible() ? QIcon(*dotIcon) : QIcon(*dothIcon)); +                        //bool v = port->nativeGuiVisible() +                        //port->instrument()->showGui(!port->guiVisible()); +                        port->instrument()->showNativeGui(!port->nativeGuiVisible()); +                        //port->instrument()->showNativeGui(!v); +                        //item->setIcon(port->guiVisible() ? QIcon(*dotIcon) : QIcon(*dothIcon)); +                        item->setIcon(port->nativeGuiVisible() ? QIcon(*dotIcon) : QIcon(*dothIcon)); +                        //item->setIcon(!v ? QIcon(*dotIcon) : QIcon(*dothIcon));                    }                    return; @@ -1226,8 +1232,10 @@ void MPConfig::songChanged(int flags)  		  itemrec->setIcon(QIcon(QPixmap()));  		  itemplay->setIcon(QIcon(QPixmap()));                    } -            if (port->hasGui()) { -                  itemgui->setIcon(port->guiVisible() ? QIcon(*dotIcon) : QIcon(*dothIcon)); +            //if (port->hasGui()) { +            if (port->hasNativeGui()) { +                  //itemgui->setIcon(port->guiVisible() ? QIcon(*dotIcon) : QIcon(*dothIcon)); +                  itemgui->setIcon(port->nativeGuiVisible() ? QIcon(*dotIcon) : QIcon(*dothIcon));                    }              else {  	      itemgui->setIcon(QIcon(QPixmap())); | 
