author | zautrix <zautrix> | 2004-10-20 16:27:05 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-20 16:27:05 (UTC) |
commit | 46ea2933c9f67e77fb5c6cd93237efc755f28b62 (patch) (unidiff) | |
tree | 8025e9caceb2f62cd5b1d4b78b359545d38b39c5 /korganizer | |
parent | 5cf3c1bce58a6487af166e637e54571e98156fd0 (diff) | |
download | kdepimpi-46ea2933c9f67e77fb5c6cd93237efc755f28b62.zip kdepimpi-46ea2933c9f67e77fb5c6cd93237efc755f28b62.tar.gz kdepimpi-46ea2933c9f67e77fb5c6cd93237efc755f28b62.tar.bz2 |
made KDE sync perfect
-rw-r--r-- | korganizer/mainwindow.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 63484d6..e3dad94 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -1855,33 +1855,39 @@ void MainWindow::exportVCalendar() | |||
1855 | if ( fn.length() > 20 ) | 1855 | if ( fn.length() > 20 ) |
1856 | mes = i18n("KO/Pi:Exported to ...%1").arg(fn.right(20)) ; | 1856 | mes = i18n("KO/Pi:Exported to ...%1").arg(fn.right(20)) ; |
1857 | else | 1857 | else |
1858 | mes = i18n("KO/Pi:Exported to %1").arg(fn ); | 1858 | mes = i18n("KO/Pi:Exported to %1").arg(fn ); |
1859 | setCaption(mes); | 1859 | setCaption(mes); |
1860 | } | 1860 | } |
1861 | } | 1861 | } |
1862 | 1862 | ||
1863 | } | 1863 | } |
1864 | 1864 | ||
1865 | void MainWindow::syncFileRequest() | 1865 | void MainWindow::syncFileRequest() |
1866 | { | 1866 | { |
1867 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { | ||
1868 | mSyncManager->slotSyncMenu( 999 ); | ||
1869 | } | ||
1867 | save(); | 1870 | save(); |
1868 | } | 1871 | } |
1869 | void MainWindow::getFile( bool success ) | 1872 | void MainWindow::getFile( bool success ) |
1870 | { | 1873 | { |
1871 | if ( ! success ) { | 1874 | if ( ! success ) { |
1872 | setCaption( i18n("Error receiving file. Nothing changed!") ); | 1875 | setCaption( i18n("Error receiving file. Nothing changed!") ); |
1873 | return; | 1876 | return; |
1874 | } | 1877 | } |
1875 | mView->openCalendar( defaultFileName() ); | 1878 | mView->openCalendar( defaultFileName() ); |
1879 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { | ||
1880 | mSyncManager->slotSyncMenu( 999 ); | ||
1881 | } | ||
1876 | setCaption( i18n("Pi-Sync successful!") ); | 1882 | setCaption( i18n("Pi-Sync successful!") ); |
1877 | } | 1883 | } |
1878 | 1884 | ||
1879 | void MainWindow::printSel( ) | 1885 | void MainWindow::printSel( ) |
1880 | { | 1886 | { |
1881 | mView->viewManager()->agendaView()->agenda()->printSelection(); | 1887 | mView->viewManager()->agendaView()->agenda()->printSelection(); |
1882 | } | 1888 | } |
1883 | 1889 | ||
1884 | void MainWindow::printCal() | 1890 | void MainWindow::printCal() |
1885 | { | 1891 | { |
1886 | mView->print();//mCp->showDialog(); | 1892 | mView->print();//mCp->showDialog(); |
1887 | } | 1893 | } |