summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/statpopup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/statpopup.cpp b/src/statpopup.cpp
index e8c3c8f..306d537 100644
--- a/src/statpopup.cpp
+++ b/src/statpopup.cpp
@@ -292,7 +292,7 @@ void StatPopup::setGrid(bool set) {
void StatPopup::selectColor() {
// which color?
int whichDock;
- if (sscanf(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name(), "Color%d", &whichDock) != 1)
+ if (sscanf(sender()->name(), "Color%d", &whichDock) != 1)
return;
if (whichDock < 0 || whichDock >= r.size())
return;