Commit 9a8c4054 authored by Dominik Haumann's avatar Dominik Haumann

fix porting bugs

parent c79fa43d
......@@ -23,7 +23,7 @@ ecm_optional_add_subdirectory (katesql)
ecm_optional_add_subdirectory (filebrowser)
# xml completion
ecm_optional_add_subdirectory ( xmltools )
ecm_optional_add_subdirectory (xmltools)
#if(NOT WIN32)
# add_subdirectory( gdbplugin ) # reading /proc/...
......
......@@ -32,7 +32,7 @@ void KateBtDatabase::loadFromFile(const QString &url)
QDataStream ds(&file);
ds >> db;
}
qDebug() << "Number of entries in the backtrace database:" << db.size();
// qDebug() << "Number of entries in the backtrace database" << url << ":" << db.size();
}
void KateBtDatabase::saveToFile(const QString &url) const
......@@ -43,6 +43,7 @@ void KateBtDatabase::saveToFile(const QString &url) const
QDataStream ds(&file);
ds << db;
}
// qDebug() << "Saved backtrace database to" << url;
}
QString KateBtDatabase::value(const QString &key)
......
......@@ -57,8 +57,8 @@ KateBtBrowserPlugin::KateBtBrowserPlugin(QObject *parent, const QList<QVariant>
, indexer(&db)
{
s_self = this;
db.loadFromFile(QStandardPaths::locate(QStandardPaths::GenericDataLocation,
QLatin1String("kate/backtracedatabase")));
db.loadFromFile(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation)
+ QLatin1String("/katebtbrowser/backtracedatabase.db"));
}
KateBtBrowserPlugin::~KateBtBrowserPlugin()
......@@ -68,10 +68,12 @@ KateBtBrowserPlugin::~KateBtBrowserPlugin()
indexer.wait();
}
db.saveToFile(QStandardPaths::locate(QStandardPaths::GenericDataLocation,
QLatin1String("kate/backtracedatabase")));
const QString path = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation)
+ QLatin1String("/katebtbrowser");
QDir().mkpath(path);
db.saveToFile(path + QLatin1String("/backtracedatabase.db"));
s_self = 0L;
s_self = 0;
}
KateBtBrowserPlugin &KateBtBrowserPlugin::self()
......@@ -159,7 +161,7 @@ KateBtBrowserPluginView::KateBtBrowserPluginView(KateBtBrowserPlugin *plugin, KT
m_widget = new KateBtBrowserWidget(mainWindow, toolview);
connect(plugin, SIGNAL(newStatus(QString)),
this, SLOT(setStatus(QString)));
m_widget, SLOT(setStatus(QString)));
}
KateBtBrowserPluginView::~KateBtBrowserPluginView()
......
......@@ -1084,6 +1084,9 @@ InsertElement::InsertElement(const QStringList & completions, QWidget * parent)
m_okButton = box->button(QDialogButtonBox::Ok);
m_okButton->setDefault(true);
connect(box, SIGNAL(accepted()), this, SLOT(accept()));
connect(box, SIGNAL(rejected()), this, SLOT(reject()));
// fill layout
topLayout->addWidget(label);
topLayout->addWidget(m_cmbElements);
......
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