Aufgrund von Umarbeiten des s3 Storage wird es in GitLab, in nächster Zeit, mögliche Performance-Einbußen geben. Näheres dazu unter: https://maintenance.itc.rwth-aachen.de/ticket/status/messages/43/show_ticket/6670

Commit 16bba6b8 authored by Carsten Fuhrmann's avatar Carsten Fuhrmann

show channellist on hot key,

close with right klick
parent 7c3b7fc2
...@@ -25,6 +25,8 @@ void ChannelTree::mousePressEvent(QMouseEvent * event) ...@@ -25,6 +25,8 @@ void ChannelTree::mousePressEvent(QMouseEvent * event)
{ {
if (event->button() == Qt::LeftButton) if (event->button() == Qt::LeftButton)
isMouseDown = true; isMouseDown = true;
else if (event->button() == Qt::RightButton)
m_parent->hide();
QTreeWidget::mousePressEvent(event); QTreeWidget::mousePressEvent(event);
} }
......
...@@ -108,14 +108,12 @@ OverlayController* getController(uint64 serverConnectionHandlerID = 0) ...@@ -108,14 +108,12 @@ OverlayController* getController(uint64 serverConnectionHandlerID = 0)
{ {
OverlayController* ret = NULL; OverlayController* ret = NULL;
for (auto &it : g_serverList.keys()) for (auto it : g_serverList.keys())
{ {
int tmp; int tmp;
anyID ownID;
ts3Functions.getClientID(it, &ownID);
if (ts3Functions.getClientSelfVariableAsInt(ownID, CLIENT_IS_MUTED, &tmp) != ERROR_ok) if (ts3Functions.getClientSelfVariableAsInt(it, CLIENT_INPUT_HARDWARE, &tmp) == ERROR_ok)
if (tmp == 0) if (tmp == 1)
ret = g_serverList.find(it).value(); ret = g_serverList.find(it).value();
} }
return ret; return ret;
...@@ -779,9 +777,11 @@ void ts3plugin_onHotkeyEvent(const char* keyword) { ...@@ -779,9 +777,11 @@ void ts3plugin_onHotkeyEvent(const char* keyword) {
if (QString(keyword) == "Channellist") if (QString(keyword) == "Channellist")
{ {
auto tmp = getController(); auto controller = getController();
if (tmp != NULL) if (controller != NULL)
tmp->debugPrint("WUHU"); {
controller->displayChannelList();
}
} }
} }
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
#define PLUGINS_EXPORTDLL __attribute__ ((visibility("default"))) #define PLUGINS_EXPORTDLL __attribute__ ((visibility("default")))
#endif #endif
#define BEEP Beep(512,500);
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
......
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