Commit 46c53b72 authored by Laurent Montel's avatar Laurent Montel 😁

Debug--

parent aaf37085
......@@ -1128,7 +1128,7 @@ bool ActionManager::saveAsURL(const QUrl &url)
#ifdef AKONADI_PORT_DISABLED // can go away, kept for reference
bool ActionManager::saveModifiedURL()
{
qCDebug(KORGANIZER_LOG);
// If calendar isn't modified do nothing.
if (!mCalendarView->isModified()) {
......@@ -1193,7 +1193,7 @@ QUrl ActionManager::getSaveURL()
void ActionManager::saveProperties(KConfigGroup &config)
{
qCDebug(KORGANIZER_LOG);
config.writeEntry("UseResourceCalendar", !mMainWindow->hasDocument());
if (mMainWindow->hasDocument()) {
......@@ -1209,7 +1209,7 @@ void ActionManager::readProperties(const KConfigGroup &)
// Configuration changed as a result of the options dialog.
void ActionManager::updateConfig()
{
qCDebug(KORGANIZER_LOG);
mNextXDays->setText(i18np("&Next Day", "&Next %1 Days",
KOPrefs::instance()->mNextXDays));
......@@ -1382,7 +1382,7 @@ bool ActionManager::addIncidence(const QString &ical)
void ActionManager::downloadNewStuff()
{
qCDebug(KORGANIZER_LOG);
KNS3::DownloadDialog dialog(mCalendarView);
dialog.exec();
foreach (const KNS3::Entry &e, dialog.installedEntries()) {
......
......@@ -108,7 +108,7 @@ void ExportWebDialog::slotOk()
void ExportWebDialog::slotDefault()
{
qCDebug(KORGANIZER_LOG);
if (KMessageBox::warningContinueCancel(
this,
......
......@@ -614,7 +614,7 @@ void HtmlExportJob::createTodoList(QTextStream *ts)
void HtmlExportJob::createTodo(QTextStream *ts, const KCalCore::Todo::Ptr &todo)
{
qCDebug(KORGANIZER_LOG);
const bool completed = todo->isCompleted();
......
......@@ -51,7 +51,7 @@ KOrganizerApp::~KOrganizerApp()
int KOrganizerApp::activate(const QStringList &args, const QString &workingDir)
{
qCDebug(KORGANIZER_LOG);
static bool first = true;
if (isSessionRestored() && first) {
KOrg::MainWindow *korg = ActionManager::findInstance(QUrl());
......
......@@ -152,7 +152,7 @@ void KOEventView::showNewEventPopup()
void KOEventView::defaultAction(const Akonadi::Item &aitem)
{
qCDebug(KORGANIZER_LOG);
const KCalCore::Incidence::Ptr incidence = CalendarSupport::incidence(aitem);
if (!incidence) {
qCDebug(KORGANIZER_LOG) << "Ouch, null incidence";
......
......@@ -53,7 +53,7 @@ KOrganizer::KOrganizer() : KParts::MainWindow(), KOrg::MainWindow(), mPluginInte
// modal subdialogs will only affect this dialog, not the other windows
setAttribute(Qt::WA_GroupLeader);
qCDebug(KORGANIZER_LOG);
KOCore::self()->addXMLGUIClient(this, this);
// setMinimumSize(600,400); // make sure we don't get resized too small...
......@@ -147,7 +147,7 @@ void KOrganizer::readSettings()
void KOrganizer::writeSettings()
{
qCDebug(KORGANIZER_LOG);
KSharedConfig::Ptr config = KSharedConfig::openConfig();
mActionManager->writeSettings();
......@@ -177,7 +177,7 @@ void KOrganizer::slotEditKeys()
bool KOrganizer::queryClose()
{
qCDebug(KORGANIZER_LOG);
bool close = mActionManager->queryClose();
......
......@@ -62,7 +62,7 @@ KOPrefs::KOPrefs() : KOPrefsBase()
KOPrefs::~KOPrefs()
{
qCDebug(KORGANIZER_LOG);
mEventViewsPrefs->writeConfig();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment