mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-19 17:39:44 +00:00
fix context menu
This commit is contained in:
parent
a19242b4ec
commit
4a816b6c17
1 changed files with 3 additions and 3 deletions
|
@ -49,10 +49,10 @@ void CSVWorld::Table::contextMenuEvent (QContextMenuEvent *event)
|
|||
{
|
||||
int row =selectedRows.begin()->row();
|
||||
|
||||
int column = mModel->findColumnIndex (CSMWorld::Columns::ColumnId_Topic);
|
||||
int column = mModel->searchColumnIndex (CSMWorld::Columns::ColumnId_Topic);
|
||||
|
||||
if (column==-1)
|
||||
column = mModel->findColumnIndex (CSMWorld::Columns::ColumnId_Journal);
|
||||
column = mModel->searchColumnIndex (CSMWorld::Columns::ColumnId_Journal);
|
||||
|
||||
if (column!=-1)
|
||||
{
|
||||
|
@ -410,4 +410,4 @@ void CSVWorld::Table::requestFocus (const std::string& id)
|
|||
void CSVWorld::Table::recordFilterChanged (boost::shared_ptr<CSMFilter::Node> filter)
|
||||
{
|
||||
mProxyModel->setFilter (filter);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue