diff options
Diffstat (limited to 'ktuberling/toplevel.cpp')
-rw-r--r-- | ktuberling/toplevel.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ktuberling/toplevel.cpp b/ktuberling/toplevel.cpp index c0131d26..0563d856 100644 --- a/ktuberling/toplevel.cpp +++ b/ktuberling/toplevel.cpp @@ -186,19 +186,19 @@ void TopLevel::changeLanguage(uint newLanguage) soundFactory->change(newLanguage); } -// Load the tqlayouts file -bool TopLevel::loadLayout(TQDomDocument &tqlayoutDocument) +// Load the layouts file +bool TopLevel::loadLayout(TQDomDocument &layoutDocument) { - TQFile tqlayoutFile(TQFile::encodeName(locate("data", "ktuberling/pics/tqlayout.xml"))); - if (!tqlayoutFile.open(IO_ReadOnly)) + TQFile layoutFile(TQFile::encodeName(locate("data", "ktuberling/pics/tqlayout.xml"))); + if (!layoutFile.open(IO_ReadOnly)) return false; - if (!tqlayoutDocument.setContent(&tqlayoutFile)) + if (!layoutDocument.setContent(&layoutFile)) { - tqlayoutFile.close(); + layoutFile.close(); return false; } - tqlayoutFile.close(); + layoutFile.close(); return true; } |