Fixed bug 449830 - Window title shows long dash incorrectly r=pavlov

This commit is contained in:
Oleg Romashin
2008-08-09 00:32:31 +03:00
parent 4529bd5a7d
commit ba5fcb81d0

View File

@@ -843,7 +843,7 @@ NS_IMETHODIMP
nsWindow::SetTitle(const nsAString& aTitle)
{
if (mDrawingArea) {
QString qStr(NS_ConvertUTF16toUTF8(aTitle).get());
QString qStr(QString::fromUtf16(aTitle.BeginReading(), aTitle.Length()));
mDrawingArea->setWindowTitle(qStr);
}