| 62 | } |
| 63 | |
| 64 | int CHook::UnRegisterKeyboard() |
| 65 | { |
| 66 | if(m_bScript) { |
| 67 | #if defined(Q_OS_WIN32) |
| 68 | QDesktopServices::openUrl(m_pParameterPlugin->GetRestoreDesktopShortcutsScript()); |
| 69 | #else |
| 70 | RunCommand(m_pParameterPlugin->GetRestoreDesktopShortcutsScript()); |
| 71 | #endif |
| 72 | } else { |
| 73 | OnRestoreDesktopShortcuts(); |
| 74 | } |
| 75 | |
| 76 | OnUnRegisterKeyboard(); |
| 77 | return 0; |
| 78 | } |
| 79 | |
| 80 | int CHook::OnRegisterKeyboard() |
| 81 | { |
no test coverage detected