Commit 64c7eec3 authored by Matthias Möller's avatar Matthias Möller

seperates target/source selection

refs #1375

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16265 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 7095d87d
......@@ -541,6 +541,7 @@ void MaterialPicker::createContextMenu(const QPoint& _point)
menu->addSeparator();
//add hotkey selectors
QSignalMapper* signalMapper = new QSignalMapper(menu);
for (unsigned i = 0; i < supportedKeys_; ++i)
{
......@@ -548,6 +549,8 @@ void MaterialPicker::createContextMenu(const QPoint& _point)
connect(action,SIGNAL(triggered(bool)),signalMapper,SLOT(map()));
signalMapper->setMapping(action,Qt::Key_1+i);
std::map<int,size_t>::iterator iter = shortKeyRow_.find(Qt::Key_1+i);
//Disable already selected hotkey number
if (iter != shortKeyRow_.end() && iter->second == static_cast<size_t>(materialListWidget_->currentRow()))
action->setDisabled(true);
}
......
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