[developerteam getadooble] SF.net SVN: dooble:[1566] trunk/browser/Source
Brought to you by:
textfield
From: <tex...@us...> - 2010-09-26 02:07:15
|
Revision: 1566 http://dooble.svn.sourceforge.net/dooble/?rev=1566&view=rev Author: textfield Date: 2010-09-26 02:07:08 +0000 (Sun, 26 Sep 2010) Log Message: ----------- Prevent broken title bars. Modified Paths: -------------- trunk/browser/Source/dooble.cc trunk/browser/Source/dview.cc Modified: trunk/browser/Source/dooble.cc =================================================================== --- trunk/browser/Source/dooble.cc 2010-09-25 14:56:17 UTC (rev 1565) +++ trunk/browser/Source/dooble.cc 2010-09-26 02:07:08 UTC (rev 1566) @@ -1146,14 +1146,14 @@ } } -void dooble::slotTitleChanged(const QString &title_) +void dooble::slotTitleChanged(const QString &titleArg) { dview *p = qobject_cast<dview *> (sender()); - QString title(title_.trimmed()); + QString title(titleArg.trimmed()); if(p == qobject_cast<dview *> (ui.tabWidget->currentWidget())) { - if(title_.isEmpty()) + if(title.isEmpty()) setWindowTitle(tr("Dooble Web Browser")); else setWindowTitle(title + tr(" - Dooble Web Browser")); Modified: trunk/browser/Source/dview.cc =================================================================== --- trunk/browser/Source/dview.cc 2010-09-25 14:56:17 UTC (rev 1565) +++ trunk/browser/Source/dview.cc 2010-09-26 02:07:08 UTC (rev 1566) @@ -548,11 +548,11 @@ QString dview::title(void) const { if(currentIndex() == 0) - return webView->title(); + return webView->title().trimmed(); else if(currentIndex() == 1) - return fileManager->title(); + return fileManager->title().trimmed(); else if(currentIndex() == 2) - return ftpBrowser->title(); + return ftpBrowser->title().trimmed(); else return QString(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |