summaryrefslogtreecommitdiffstats
path: root/src/dolphin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphin.cpp')
-rw-r--r--src/dolphin.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dolphin.cpp b/src/dolphin.cpp
index 9365671..01b5c5f 100644
--- a/src/dolphin.cpp
+++ b/src/dolphin.cpp
@@ -432,11 +432,10 @@ void Dolphin::createFile()
KSortableValueList<CreateFileEntry, TQString>::ConstIterator it = m_createFileTemplates.begin();
KSortableValueList<CreateFileEntry, TQString>::ConstIterator end = m_createFileTemplates.end();
- const TQString senderName(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name());
bool found = false;
CreateFileEntry entry;
while (!found && (it != end)) {
- if ((*it).index() == senderName) {
+ if ((*it).index() == sender()->name()) {
entry = (*it).value();
found = true;
}