mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
parent
cec51fc0d5
commit
39af453281
@ -320,6 +320,13 @@ void AKN_Handler::showAccessKeys()
|
|||||||
void AKN_Handler::hideAccessKeys()
|
void AKN_Handler::hideAccessKeys()
|
||||||
{
|
{
|
||||||
if (!m_accessKeyLabels.isEmpty() && m_view) {
|
if (!m_accessKeyLabels.isEmpty() && m_view) {
|
||||||
|
// Fixes crash when hiding labels while closing view
|
||||||
|
if (!m_view->inherits("WebView")) {
|
||||||
|
m_accessKeyLabels.clear();
|
||||||
|
m_accessKeyNodes.clear();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (int i = 0; i < m_accessKeyLabels.count(); ++i) {
|
for (int i = 0; i < m_accessKeyLabels.count(); ++i) {
|
||||||
QLabel* label = m_accessKeyLabels[i];
|
QLabel* label = m_accessKeyLabels[i];
|
||||||
label->hide();
|
label->hide();
|
||||||
|
@ -36,7 +36,7 @@ PluginSpec AKN_Plugin::pluginSpec()
|
|||||||
spec.name = "Access Keys Navigation";
|
spec.name = "Access Keys Navigation";
|
||||||
spec.info = "Access keys navigation for QupZilla";
|
spec.info = "Access keys navigation for QupZilla";
|
||||||
spec.description = "Provides support for navigating in webpages by keyboard shortcuts";
|
spec.description = "Provides support for navigating in webpages by keyboard shortcuts";
|
||||||
spec.version = "0.4.2";
|
spec.version = "0.4.3";
|
||||||
spec.author = "David Rosca <nowrep@gmail.com>";
|
spec.author = "David Rosca <nowrep@gmail.com>";
|
||||||
spec.icon = QPixmap(":/accesskeysnavigation/data/icon.png");
|
spec.icon = QPixmap(":/accesskeysnavigation/data/icon.png");
|
||||||
spec.hasSettings = true;
|
spec.hasSettings = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user