mirror of
https://github.com/fergalmoran/flameshot.git
synced 2025-12-22 09:51:06 +00:00
fix - Overview Shortcuts does not work properly #1339
This commit is contained in:
committed by
borgmanJeremy
parent
911652e5eb
commit
3649379a00
@@ -90,12 +90,17 @@ void ShortcutsWidget::initInfoTable()
|
|||||||
const auto default_key_sequence = current_shortcut.at(2);
|
const auto default_key_sequence = current_shortcut.at(2);
|
||||||
m_table->setItem(i, 0, new QTableWidgetItem(description));
|
m_table->setItem(i, 0, new QTableWidgetItem(description));
|
||||||
|
|
||||||
#if (defined(Q_OS_MAC) || defined(Q_OS_MAC64) || defined(Q_OS_MACOS) || \
|
const auto key_sequence = identifier.isEmpty()
|
||||||
defined(Q_OS_MACX))
|
? default_key_sequence
|
||||||
|
: m_config.shortcut(identifier);
|
||||||
|
#if defined(Q_OS_MACOS)
|
||||||
|
// QTableWidgetItem* item =
|
||||||
|
// new
|
||||||
|
// QTableWidgetItem(nativeOSHotKeyText(m_shortcuts.at(i).at(2)));
|
||||||
QTableWidgetItem* item =
|
QTableWidgetItem* item =
|
||||||
new QTableWidgetItem(nativeOSHotKeyText(m_shortcuts.at(i).at(2)));
|
new QTableWidgetItem(nativeOSHotKeyText(key_sequence));
|
||||||
#else
|
#else
|
||||||
QTableWidgetItem* item = new QTableWidgetItem(m_shortcuts.at(i).at(2));
|
QTableWidgetItem* item = new QTableWidgetItem(key_sequence);
|
||||||
#endif
|
#endif
|
||||||
item->setTextAlignment(Qt::AlignCenter);
|
item->setTextAlignment(Qt::AlignCenter);
|
||||||
m_table->setItem(i, 1, item);
|
m_table->setItem(i, 1, item);
|
||||||
|
|||||||
Reference in New Issue
Block a user