summaryrefslogtreecommitdiffstats
path: root/quanta/treeviews/templatestreeview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/treeviews/templatestreeview.cpp')
-rw-r--r--quanta/treeviews/templatestreeview.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/quanta/treeviews/templatestreeview.cpp b/quanta/treeviews/templatestreeview.cpp
index 0b9973e8..f1eaca73 100644
--- a/quanta/treeviews/templatestreeview.cpp
+++ b/quanta/treeviews/templatestreeview.cpp
@@ -259,7 +259,7 @@ void TemplatesTreeView::slotMenu(KListView*, TQListViewItem *item, const TQPoint
return;
}
setSelected(item, true);
- bool hasProject = m_projectName;
+ bool hasProject = !m_projectName.isEmpty();
m_folderMenu->setItemVisible(m_insertFolderInProject, hasProject);
m_fileMenu->setItemVisible(m_insertFileInProject, hasProject);
@@ -373,7 +373,7 @@ void TemplatesTreeView::slotOpen()
/** No descriptions */
void TemplatesTreeView::slotNewDir()
{
- NewTemplateDirDlg *createDirDlg = new NewTemplateDirDlg(this,i18n("Create New Template Folder"));
+ NewTemplateDirDlg *createDirDlg = new NewTemplateDirDlg(this,i18n("Create New Template Folder").ascii());
createDirDlg->typesCombo->insertItem(typeToi18n["text/all"]);
createDirDlg->typesCombo->insertItem(typeToi18n["file/all"]);
createDirDlg->typesCombo->insertItem(typeToi18n["template/all"]);
@@ -564,7 +564,7 @@ void TemplatesTreeView::slotProperties()
//Always add the Quanta directory page
TQFrame *quantaDirPage = propDlg->addPage(i18n("Quanta Template"));
TQVBoxLayout *topLayout = new TQVBoxLayout( quantaDirPage);
- m_quantaProperties = new QuantaPropertiesPage( quantaDirPage, i18n("Quanta") );
+ m_quantaProperties = new QuantaPropertiesPage( quantaDirPage, i18n("Quanta").ascii() );
m_quantaProperties->typesCombo->insertItem(typeToi18n["text/all"]);
m_quantaProperties->typesCombo->insertItem(typeToi18n["file/all"]);
@@ -982,7 +982,7 @@ void TemplatesTreeView::slotSendInMail()
TQStringList attachmentFile;
attachmentFile += createTemplateTarball();
- TagMailDlg *mailDlg = new TagMailDlg( this, i18n("Send template in email"));
+ TagMailDlg *mailDlg = new TagMailDlg( this, i18n("Send template in email").ascii() );
TQString toStr;
TQString message = i18n("Hi,\n This is a Quanta Plus [http://quanta.kdewebdev.org] template tarball.\n\nHave fun.\n");
TQString titleStr;