1.1 --- a/mapeditor.cpp Tue Apr 11 14:34:14 2006 +0000
1.2 +++ b/mapeditor.cpp Mon Apr 24 10:05:10 2006 +0000
1.3 @@ -126,6 +126,7 @@
1.4 extern Settings settings;
1.5
1.6 extern QString iconPath;
1.7 +extern QDir vymBaseDir;
1.8
1.9 int MapEditor::mapNum=0; // make instance
1.10
1.11 @@ -3046,7 +3047,21 @@
1.12 void MapEditor::testFunction()
1.13 {
1.14 cout << "MapEditor::testFunction() called\n";
1.15 -
1.16 + return;
1.17 +
1.18 + QString ub=vymBaseDir.path()+"/scripts/update-bookmarks";
1.19 + QProcess *proc = new QProcess( this );
1.20 + proc->addArgument(ub);
1.21 +
1.22 + if ( !proc->start() )
1.23 + {
1.24 + QMessageBox::warning(0,
1.25 + tr("Warning"),
1.26 + tr("Couldn't find script %1\nto notifiy Browsers of changed bookmarks.").arg(ub));
1.27 + }
1.28 +
1.29 +
1.30 +/*
1.31 if (hidemode==HideNone)
1.32 {
1.33 setHideTmpMode (HideExport);
1.34 @@ -3070,6 +3085,7 @@
1.35 setHideTmpMode (HideNone);
1.36 }
1.37 cout <<" hidemode="<<hidemode<<endl;
1.38 + */
1.39 }
1.40
1.41 void MapEditor::ensureSelectionVisible()