Ticket #12: 00-mythcontext-protocoldialogs.patch
File 00-mythcontext-protocoldialogs.patch, 2.3 KB (added by , 17 years ago) |
---|
-
mythtv/libs/libmyth/mythcontext.cpp
1892 1902 "backend=%2)\n") 1893 1903 .arg(MYTH_PROTO_VERSION).arg(strlist[1])); 1894 1904 1895 if (d->mainWindow && d->m_ui && d->m_ui->IsScreenSetup())1905 if(d->m_gui) 1896 1906 { 1897 MythPopupBox::showOkPopup(1898 d->mainWindow,1899 "Connection failure",1900 tr("The server uses network protocol version %1, "1901 "but this client only understands version %2. "1902 "Make sure you are running compatible versions of " 1903 "the backend and frontend.")1904 .arg(strlist[1]).arg(MYTH_PROTO_VERSION));1907 QString message = tr("The server uses network protocol version %1, " 1908 "but this client only understands version %2. " 1909 "Make sure you are running compatible versions of " 1910 "the backend and frontend.") 1911 .arg(strlist[1]).arg(MYTH_PROTO_VERSION); 1912 1913 MythConfirmationDialog *protocolPopup; 1914 protocolPopup = ShowOkPopup(message, this); 1905 1915 } 1906 1916 return false; 1907 1917 } … … 1979 1989 if (libversion == pluginversion) 1980 1990 return true; 1981 1991 1982 QString err = tr("Plugin %1 is not compatible with the installed MythTV "1983 "libraries. Please recompile the plugin after a make "1984 "distclean");1985 1986 1992 VERBOSE(VB_GENERAL, QString("Plugin %1 (%2) binary version does not " 1987 1993 "match libraries (%3)") 1988 1994 .arg(name).arg(pluginversion).arg(libversion)); 1989 1995 1990 if (GetMainWindow() && !d->disablelibrarypopup) 1991 ShowOkPopup(err.arg(name)); 1992 1996 if(d->m_gui && !d->disablelibrarypopup) 1997 { 1998 QString err = tr("Plugin %1 is not compatible with the installed MythTV " 1999 "libraries. Please recompile the plugin after a make " 2000 "distclean").arg(name); 2001 MythConfirmationDialog *libMismatchPopup; 2002 libMismatchPopup = ShowOkPopup(err, this); 2003 } 1993 2004 return false; 1994 2005 } 1995 2006